comparison mercurial/cmdutil.py @ 49180:c577d394ed6b

branching: merge with stable
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 May 2022 07:36:37 -0700
parents f45e1618cbf6 df68d64b0d50
children 53e9422a9b45
comparison
equal deleted inserted replaced
49177:90a15199cbc6 49180:c577d394ed6b
2912 # If there are changes to amend or if copy information needs to be read 2912 # If there are changes to amend or if copy information needs to be read
2913 # from the changeset extras, we cannot take the fast path of using 2913 # from the changeset extras, we cannot take the fast path of using
2914 # filectxs from the old commit. 2914 # filectxs from the old commit.
2915 if changes or changeset_copies: 2915 if changes or changeset_copies:
2916 # Recompute copies (avoid recording a -> b -> a) 2916 # Recompute copies (avoid recording a -> b -> a)
2917 copied = copies.pathcopies(base, wctx, matcher) 2917 copied = copies.pathcopies(base, wctx)
2918 if old.p2: 2918 if old.p2():
2919 copied.update(copies.pathcopies(old.p2(), wctx, matcher)) 2919 copied.update(copies.pathcopies(old.p2(), wctx))
2920 2920
2921 # Prune files which were reverted by the updates: if old 2921 # Prune files which were reverted by the updates: if old
2922 # introduced file X and the file was renamed in the working 2922 # introduced file X and the file was renamed in the working
2923 # copy, then those two files are the same and 2923 # copy, then those two files are the same and
2924 # we can discard X from our list of files. Likewise if X 2924 # we can discard X from our list of files. Likewise if X