mercurial/localrepo.py
changeset 44107 5a012404503b
parent 44106 bfaf4c673bec
child 44124 d56a2d6f34f0
--- a/mercurial/localrepo.py	Sun Nov 17 14:54:41 2019 +0100
+++ b/mercurial/localrepo.py	Thu Nov 21 23:25:08 2019 +0100
@@ -1543,6 +1543,14 @@
             pair = (rev, node)
             quick[rev] = pair
             quick[node] = pair
+            # also add the parents of the parents
+            for r in cl.parentrevs(rev):
+                if r == nullrev:
+                    continue
+                n = cl.node(r)
+                pair = (r, n)
+                quick[r] = pair
+                quick[n] = pair
         p1node = self.dirstate.p1()
         if p1node != nullid:
             quick[b'.'] = quick[p1node]