[Request] [+ ] D8562: shelve: get mergestate via context
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon May 18 22:10:50 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/D8562
AFFECTED FILES
mercurial/shelve.py
CHANGE DETAILS
diff --git a/mercurial/shelve.py b/mercurial/shelve.py
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -42,7 +42,6 @@
lock as lockmod,
mdiff,
merge,
- mergestate as mergestatemod,
node as nodemod,
patch,
phases,
@@ -802,7 +801,7 @@
basename = state.name
with repo.lock():
checkparents(repo, state)
- ms = mergestatemod.mergestate.read(repo)
+ ms = repo[None].mergestate()
if list(ms.unresolved()):
raise error.Abort(
_(b"unresolved conflicts, can't continue"),
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/b951bb3d/attachment-0001.html>
More information about the Mercurial-patches
mailing list