mercurial/copies.py
changeset 44965 61719b9658b1
parent 44858 45f3f35cefe7
parent 44788 d452acc8cce8
child 44981 4c1d39215034
--- a/mercurial/copies.py	Sat May 30 12:36:00 2020 -0400
+++ b/mercurial/copies.py	Wed Jun 03 19:20:18 2020 +0900
@@ -604,9 +604,9 @@
         # thing in pathcopies(): pathcopies(x, y) can return a copy where the
         # destination doesn't exist in y.
         pass
-    elif m2[src] != mb[src]:
-        if not _related(c2[src], base[src]):
-            return
+    elif mb[src] != m2[src] and not _related(c2[src], base[src]):
+        return
+    elif mb[src] != m2[src] or mb.flags(src) != m2.flags(src):
         # modified on side 2
         for dst in dsts1:
             copy[dst] = src