mercurial/context.py
changeset 26978 9b9d4bcc915e
parent 26977 bd19561b98d9
child 27016 448cbdab5883
--- a/mercurial/context.py	Fri Nov 13 22:37:51 2015 -0800
+++ b/mercurial/context.py	Mon Nov 16 11:27:27 2015 -0800
@@ -747,6 +747,13 @@
     def islink(self):
         return 'l' in self.flags()
 
+    def isabsent(self):
+        """whether this filectx represents a file not in self._changectx
+
+        This is mainly for merge code to detect change/delete conflicts. This is
+        expected to be True for all subclasses of basectx."""
+        return False
+
     _customcmp = False
     def cmp(self, fctx):
         """compare with other file context