D1058: context: add overlayfilectx.cmp()
phillco (Phil Cohen)
phabricator at mercurial-scm.org
Fri Oct 13 19:46:08 UTC 2017
phillco created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1058
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2089,6 +2089,9 @@
self._parent = parent
self._path = path
+ def cmp(self, fctx):
+ return self.data() != fctx.data()
+
def ctx(self):
return self._parent
To: phillco, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list