Fix compatibility with Mercurial 3.2