[Updated] D11853: simplemerge: set `conflicts` earlier for :union tool
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Dec 8 08:17:17 UTC 2021
Closed by commit rHG9e1f174d305b: simplemerge: set `conflicts` earlier for :union tool (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11853?vs=31305&id=31377
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11853/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11853
AFFECTED FILES
mercurial/simplemerge.py
CHANGE DETAILS
diff --git a/mercurial/simplemerge.py b/mercurial/simplemerge.py
--- a/mercurial/simplemerge.py
+++ b/mercurial/simplemerge.py
@@ -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
To: martinvonz, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211208/1bf4c5de/attachment-0002.html>
More information about the Mercurial-patches
mailing list