Use the Mercurial CLI commands and not its internal API (#57)