Add support for Mercurial.