[Updated] D12023: histedit: attempt to make merge labels more helpful
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Jan 24 17:36:02 UTC 2022
Closed by commit rHGf1162b125991: histedit: attempt to make merge labels more helpful (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/D12023?vs=31723&id=31836
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12023/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12023
AFFECTED FILES
hgext/histedit.py
tests/test-histedit-non-commute-abort.t
CHANGE DETAILS
diff --git a/tests/test-histedit-non-commute-abort.t b/tests/test-histedit-non-commute-abort.t
--- a/tests/test-histedit-non-commute-abort.t
+++ b/tests/test-histedit-non-commute-abort.t
@@ -77,8 +77,8 @@
insert unsupported advisory merge record
$ hg --config extensions.fakemergerecord=$TESTDIR/fakemergerecord.py fakemergerecord -x
$ hg debugmergestate
- local (local): 8f7551c7e4a2f2efe0bc8c741baf7f227d65d758
- other (histedit): e860deea161a2f77de56603b340ebbb4536308ae
+ local (already edited): 8f7551c7e4a2f2efe0bc8c741baf7f227d65d758
+ other (current change): e860deea161a2f77de56603b340ebbb4536308ae
file: e (state "u")
local path: e (hash 58e6b3a414a1e090dfc6029add0f3555ccba127f, flags "")
ancestor path: e (node 0000000000000000000000000000000000000000)
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -667,7 +667,15 @@
repo.ui.setconfig(
b'ui', b'forcemerge', opts.get(b'tool', b''), b'histedit'
)
- stats = mergemod.graft(repo, ctx, labels=[b'local', b'histedit'])
+ stats = mergemod.graft(
+ repo,
+ ctx,
+ labels=[
+ b'already edited',
+ b'current change',
+ b'parent of current change',
+ ],
+ )
finally:
repo.ui.setconfig(b'ui', b'forcemerge', b'', b'histedit')
return stats
To: martinvonz, durin42, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220124/e52982d4/attachment-0002.html>
More information about the Mercurial-patches
mailing list