Patchwork D1058: context: add overlayfilectx.cmp()

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2017, 7:46 p.m.
Message ID <differential-rev-PHID-DREV-fi7sv7kzx754z3j72kgv-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/24853/
State Superseded
Headers show

Comments

phabricator - Oct. 13, 2017, 7:46 p.m.
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




To: phillco, #hg-reviewers
Cc: mercurial-devel

Patch

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