changeset 48425:9e1f174d305b

simplemerge: set `conflicts` earlier for :union tool Differential Revision: https://phab.mercurial-scm.org/D11853
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 29 Nov 2021 23:00:29 -0800
parents fff5942d445f
children de8181c5414d
files mercurial/simplemerge.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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