mercurial wrapper