[Updated] [+ ] D8569: merge: get mergestate from context instead of directly
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Jun 11 16:08:43 UTC 2020
durin42 updated this revision to Diff 21613.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8569?vs=21446&id=21613
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8569/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8569
AFFECTED FILES
mercurial/merge.py
CHANGE DETAILS
diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -1183,9 +1183,8 @@
_prefetchfiles(repo, mctx, actions)
updated, merged, removed = 0, 0, 0
- ms = mergestatemod.mergestate.clean(
- repo, wctx.p1().node(), mctx.node(), labels
- )
+ ms = wctx.mergestate(clean=True)
+ ms.reset(wctx.p1().node(), mctx.node(), labels)
# add ACTION_GET_OTHER_AND_STORE to mergestate
for e in actions[mergestatemod.ACTION_GET_OTHER_AND_STORE]:
@@ -1594,7 +1593,7 @@
if not overwrite:
if len(pl) > 1:
raise error.Abort(_(b"outstanding uncommitted merge"))
- ms = mergestatemod.mergestate.read(repo)
+ ms = wc.mergestate()
if ms.unresolvedcount():
raise error.Abort(
_(b"outstanding merge conflicts"),
To: durin42, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200611/89c79123/attachment-0001.html>
More information about the Mercurial-patches
mailing list