[Request] [+ ] D8555: cmdutil: get mergestate via context
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon May 18 22:09:39 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/D8555
AFFECTED FILES
mercurial/cmdutil.py
CHANGE DETAILS
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -38,7 +38,6 @@
logcmdutil,
match as matchmod,
merge as mergemod,
- mergestate as mergestatemod,
mergeutil,
obsolete,
patch,
@@ -891,7 +890,7 @@
def readmorestatus(repo):
"""Returns a morestatus object if the repo has unfinished state."""
statetuple = statemod.getrepostate(repo)
- mergestate = mergestatemod.mergestate.read(repo)
+ mergestate = repo[None].mergestate()
activemerge = mergestate.active()
if not statetuple and not activemerge:
return None
@@ -3128,7 +3127,7 @@
if subs:
subrepoutil.writestate(repo, newsubstate)
- ms = mergestatemod.mergestate.read(repo)
+ ms = repo[None].mergestate()
mergeutil.checkunresolved(ms)
filestoamend = {f for f in wctx.files() if matcher(f)}
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/8a8f9e15/attachment.html>
More information about the Mercurial-patches
mailing list