Move Travis build to its own file
Fix bug where Mercurial is unable to find the parents
Some Mercurial versions are missing .hg/cache in repositories

Running something like `hg branches >/dev/null` solves this problem
since it creates the .hg/cache directory