mercurial/simplemerge.py
changeset 48425 9e1f174d305b
parent 46843 728d89f6f9b1
child 48507 58a3be48ddd2
--- a/mercurial/simplemerge.py	Fri Nov 26 11:53:54 2021 +0100
+++ b/mercurial/simplemerge.py	Mon Nov 29 23:00:29 2021 -0800
@@ -544,7 +544,7 @@
                 name_a=name_a, name_b=name_b, **pycompat.strkwargs(extrakwargs)
             )
         )
-        conflicts = m3.conflicts
+        conflicts = m3.conflicts and not mode == b'union'
 
     # merge flags if necessary
     flags = localctx.flags()
@@ -562,5 +562,5 @@
     else:
         localctx.write(mergedtext, flags)
 
-    if conflicts and not mode == b'union':
+    if conflicts:
         return 1