Add support for Mercurial repositories.