require and use Mercurial 1.6 API