Fix compatibility with Mercurial 3.2

This fixes issue #27.
This is necessary because the getfilectx has changed in a way that makes this change necessary.  The change is even documented in a comment in the mercurial sources. In any case, the git-remote-hg test suite reveals the issue.