[Request] [+ ] D8561: hg: get mergestate via context
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon May 18 22:10:49 UTC 2020
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D8561
AFFECTED FILES
mercurial/hg.py
CHANGE DETAILS
diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -33,7 +33,6 @@
logcmdutil,
logexchange,
merge as mergemod,
- mergestate as mergestatemod,
narrowspec,
node,
phases,
@@ -1165,7 +1164,7 @@
def abortmerge(ui, repo):
- ms = mergestatemod.mergestate.read(repo)
+ ms = repo[None].mergestate()
if ms.active():
# there were conflicts
node = ms.localctx.hex()
To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200518/060c13d4/attachment-0001.html>
More information about the Mercurial-patches
mailing list