mercurial/copies.py
changeset 43253 82dabad535d2
parent 43252 32187ae9eeb3
child 43254 181d28ba05da
--- a/mercurial/copies.py	Wed Oct 02 13:43:27 2019 -0400
+++ b/mercurial/copies.py	Wed Oct 16 09:52:05 2019 +0200
@@ -207,13 +207,14 @@
             return copies
         for i, c in enumerate(children[r]):
             childctx = repo[c]
+            p1copies, p2copies = childctx._copies
             if r == childctx.p1().rev():
                 parent = 1
-                childcopies = childctx.p1copies()
+                childcopies = p1copies
             else:
                 assert r == childctx.p2().rev()
                 parent = 2
-                childcopies = childctx.p2copies()
+                childcopies = p2copies
             if not alwaysmatch:
                 childcopies = {
                     dst: src for dst, src in childcopies.items() if match(dst)