This blog was helpful for the hg -> git conversion http://pythonwise.blogspot.com/2012/05/using-travis-ci-with-bitbucket.html