Removed mercurial specific code