Added support for mercurial repositories to be used as source.