context: add overlayfilectx.cmp()
authorPhil Cohen <phillco@fb.com>
Fri, 13 Oct 2017 12:34:22 -0700
changeset 34783 0c812885586b
parent 34782 f21eecc64ace
child 34784 123a68e6b473
context: add overlayfilectx.cmp() Differential Revision: https://phab.mercurial-scm.org/D1058
mercurial/context.py
--- 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