Add support for mercurial #4