D8555: cmdutil: get mergestate via context

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

D8555: cmdutil: get mergestate via context

valentin.gatienbaron (Valentin Gatien-Baron)
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
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel