changeset 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 f21eecc64ace
children 123a68e6b473
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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