* Add support for mercurial, contributed by Emanuele Aina.