[Updated] [+ ] D8563: localrepo: get mergestate via context
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Jun 11 16:08:42 UTC 2020
durin42 updated this revision to Diff 21609.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8563?vs=21509&id=21609
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
@@ -2474,7 +2474,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
@@ -2873,7 +2873,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
@@ -2974,7 +2974,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: marmoute, martinvonz, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200611/4afd49d5/attachment.html>
More information about the Mercurial-patches
mailing list