[PATCH 4 of 6 V5] graft: customize graft conflict markers (BC)

Durham Goode durham at fb.com
Fri May 16 18:48:38 CDT 2014


# HG changeset patch
# User Durham Goode <durham at fb.com>
# Date 1399684502 25200
#      Fri May 09 18:15:02 2014 -0700
# Node ID 072a8cf959e8e51fb8009313046cda87829454c2
# Parent  f0ed4cf79958ba61a23ba5d229e01d8b04b05545
graft: customize graft conflict markers (BC)

Changes the graft conflict markers to be 'graft' and 'local' to make it
more intuitive which side is which.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3185,7 +3185,7 @@
                     repo.ui.setconfig('ui', 'forcemerge', opts.get('tool', ''),
                                       'graft')
                     stats = mergemod.update(repo, ctx.node(), True, True, False,
-                                            ctx.p1().node())
+                        ctx.p1().node(), labels=['local', 'graft'])
                 finally:
                     repo.ui.setconfig('ui', 'forcemerge', '', 'graft')
                 # report any conflicts


More information about the Mercurial-devel mailing list