changeset 41754 | d5edb5d3a337 |
parent 41753 | 3158cb74fbca |
child 41756 | 49ad315b39ee |
--- a/mercurial/copies.py Tue Feb 19 10:45:22 2019 -0800 +++ b/mercurial/copies.py Thu Feb 14 22:46:18 2019 -0800 @@ -124,10 +124,13 @@ # file is a copy of an existing file t[k] = v - # remove criss-crossed copies for k, v in list(t.items()): + # remove criss-crossed copies if k in src and v in dst: del t[k] + # remove copies to files that were then removed + elif k not in dst: + del t[k] return t