[Updated] [+ ] D8563: localrepo: get mergestate via context

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu May 28 20:27:18 UTC 2020


durin42 updated this revision to Diff 21509.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8563?vs=21440&id=21509

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8563/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8563

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2468,7 +2468,7 @@
                 ui.status(
                     _(b'working directory now based on revision %d\n') % parents
                 )
-            mergestatemod.mergestate.clean(self, self[b'.'].node())
+            self[None].mergestate(clean=True)
 
         # TODO: if we know which new heads may result from this rollback, pass
         # them to destroy(), which will prevent the branchhead cache from being
@@ -2867,7 +2867,7 @@
                 fparent2 = nullid
             elif not fparentancestors:
                 # TODO: this whole if-else might be simplified much more
-                ms = mergestatemod.mergestate.read(self)
+                ms = self[None].mergestate()
                 if (
                     fname in ms
                     and ms[fname] == mergestatemod.MERGE_RECORD_MERGED_OTHER
@@ -2968,7 +2968,7 @@
                 self, status, text, user, date, extra
             )
 
-            ms = mergestatemod.mergestate.read(self)
+            ms = self[None].mergestate()
             mergeutil.checkunresolved(ms)
 
             # internal config: ui.allowemptycommit



To: durin42, #hg-reviewers
Cc: martinvonz, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200528/47d1caa4/attachment-0002.html>


More information about the Mercurial-patches mailing list