mercurial/context.py
changeset 40044 ccf4d808ec4c
parent 39959 43d3b09b3e5a
child 40045 6ed53b194124
--- a/mercurial/context.py	Thu Oct 04 11:28:48 2018 +0200
+++ b/mercurial/context.py	Thu Oct 04 08:34:59 2018 +0200
@@ -734,6 +734,8 @@
         mfl = repo.manifestlog
         # fetch the linkrev
         lkr = self.linkrev()
+        if srcrev == lkr:
+            return lkr
         # hack to reuse ancestor computation when searching for renames
         memberanc = getattr(self, '_ancestrycontext', None)
         iteranc = None