mercurial/context.py
changeset 24420 065b886f61c6
parent 24415 1cfded2fa1a9
child 24633 2f8f7cc6a53b
--- a/mercurial/context.py	Sat Aug 16 13:44:16 2014 +0900
+++ b/mercurial/context.py	Thu Mar 19 23:31:53 2015 +0900
@@ -1594,6 +1594,10 @@
     def __nonzero__(self):
         return True
 
+    def linkrev(self):
+        # linked to self._changectx no matter if file is modified or not
+        return self.rev()
+
     def parents(self):
         '''return parent filectxs, following copies if necessary'''
         def filenode(ctx, path):