changeset 48913 | f254fc73d956 |
parent 48875 | 6000f5b25c9b |
child 48935 | 2cce2fa5bcf7 |
--- a/mercurial/patch.py Thu Mar 03 17:39:20 2022 -0800 +++ b/mercurial/patch.py Thu Mar 03 18:28:30 2022 -0800 @@ -2643,11 +2643,7 @@ if copysourcematch: # filter out copies where source side isn't inside the matcher # (copies.pathcopies() already filtered out the destination) - copy = { - dst: src - for dst, src in pycompat.iteritems(copy) - if copysourcematch(src) - } + copy = {dst: src for dst, src in copy.items() if copysourcematch(src)} modifiedset = set(modified) addedset = set(added)