mercurial/cmdutil.py
changeset 49180 c577d394ed6b
parent 49144 f45e1618cbf6
parent 49179 df68d64b0d50
child 49305 53e9422a9b45
--- a/mercurial/cmdutil.py	Thu Apr 21 10:39:52 2022 -0700
+++ b/mercurial/cmdutil.py	Thu May 12 07:36:37 2022 -0700
@@ -2914,9 +2914,9 @@
         # filectxs from the old commit.
         if changes or changeset_copies:
             # Recompute copies (avoid recording a -> b -> a)
-            copied = copies.pathcopies(base, wctx, matcher)
-            if old.p2:
-                copied.update(copies.pathcopies(old.p2(), wctx, matcher))
+            copied = copies.pathcopies(base, wctx)
+            if old.p2():
+                copied.update(copies.pathcopies(old.p2(), wctx))
 
             # Prune files which were reverted by the updates: if old
             # introduced file X and the file was renamed in the working