mercurial/context.py
changeset 26977 bd19561b98d9
parent 26748 5ba0a99ff27f
child 26978 9b9d4bcc915e
--- a/mercurial/context.py	Fri Nov 13 23:01:36 2015 -0800
+++ b/mercurial/context.py	Fri Nov 13 22:37:51 2015 -0800
@@ -747,11 +747,15 @@
     def islink(self):
         return 'l' in self.flags()
 
+    _customcmp = False
     def cmp(self, fctx):
         """compare with other file context
 
         returns True if different than fctx.
         """
+        if fctx._customcmp:
+            return fctx.cmp(self)
+
         if (fctx._filerev is None
             and (self._repo._encodefilterpats
                  # if file data starts with '\1\n', empty metadata block is