diff mercurial/context.py @ 34783:0c812885586b

context: add overlayfilectx.cmp() Differential Revision: https://phab.mercurial-scm.org/D1058
author Phil Cohen <phillco@fb.com>
date Fri, 13 Oct 2017 12:34:22 -0700
parents 6036e6e205ca
children 754b5117622f
line wrap: on
line diff
--- a/mercurial/context.py	Mon Oct 16 13:10:55 2017 -0700
+++ b/mercurial/context.py	Fri Oct 13 12:34:22 2017 -0700
@@ -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