added support for mercurial