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
Merge pull request #5 from Southern/devel

Fix tests on Ubuntu 12.04 LTS