mercurial/copies.py
changeset 45673 7990e7d957b0
parent 45672 f877b3628015
child 45798 ff7e0ca666e8
--- a/mercurial/copies.py	Thu Oct 01 09:42:39 2020 +0200
+++ b/mercurial/copies.py	Thu Oct 01 09:45:00 2020 +0200
@@ -397,9 +397,9 @@
                 and dest in changes.salvaged
             ):
                 minor[dest] = value
-            elif not isancestor(new_tt, other_tt):
+            elif changes is not None and dest in changes.merged:
                 minor[dest] = value
-            elif changes is not None and dest in changes.merged:
+            elif not isancestor(new_tt, other_tt):
                 minor[dest] = value