Index: mercurial/context.py =================================================================== --- mercurial/context.py +++ mercurial/context.py @@ -1889,6 +1889,9 @@ def _changectx(self): return workingctx(self._repo) + def ctx(self): + return self._changectx + def data(self): return self._repo.wread(self._path) def renamed(self): Index: mercurial/filemerge.py =================================================================== --- mercurial/filemerge.py +++ mercurial/filemerge.py @@ -82,6 +82,9 @@ def filenode(self): return nullid + def ctx(self): + return self._ctx + _customcmp = True def cmp(self, fctx): """compare with other file context