[Request] [+ ] D8553: histedit: use context to load mergestate instead of loading it directly

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon May 18 22:09:06 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/D8553

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -224,7 +224,6 @@
     hg,
     logcmdutil,
     merge as mergemod,
-    mergestate as mergestatemod,
     mergeutil,
     node,
     obsolete,
@@ -2290,7 +2289,7 @@
 def bootstrapcontinue(ui, state, opts):
     repo = state.repo
 
-    ms = mergestatemod.mergestate.read(repo)
+    ms = repo[None].mergestate()
     mergeutil.checkunresolved(ms)
 
     if state.actions:



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/c206f89e/attachment.html>


More information about the Mercurial-patches mailing list