Patchwork D1058: context: add overlayfilectx.cmp()

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 1:46 a.m.
Message ID <c0aee6384bc47a64f76ed9312d1b6fd8@localhost.localdomain>
Download mbox | patch
Permalink /patch/25052/
State Not Applicable
Headers show

Comments

phabricator - Oct. 17, 2017, 1:46 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe8ec39263850: context: add overlayfilectx.cmp() (authored by phillco, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1058?vs=2697&id=2863

REVISION DETAIL
  https://phab.mercurial-scm.org/D1058

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2098,6 +2098,9 @@ 
         self._parent = parent
         self._path = path
 
+    def cmp(self, fctx):
+        return self.data() != fctx.data()
+
     def ctx(self):
         return self._parent