[Request] [+ ] D8564: fakemergerecord: get mergestate via context
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon May 18 22:10:51 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/D8564
AFFECTED FILES
tests/fakemergerecord.py
CHANGE DETAILS
diff --git a/tests/fakemergerecord.py b/tests/fakemergerecord.py
--- a/tests/fakemergerecord.py
+++ b/tests/fakemergerecord.py
@@ -4,10 +4,7 @@
from __future__ import absolute_import
-from mercurial import (
- mergestate as mergestatemod,
- registrar,
-)
+from mercurial import registrar
cmdtable = {}
command = registrar.command(cmdtable)
@@ -23,7 +20,7 @@
)
def fakemergerecord(ui, repo, *pats, **opts):
with repo.wlock():
- ms = mergestatemod.mergestate.read(repo)
+ ms = repo[None].mergestate()
records = ms._makerecords()
if opts.get('mandatory'):
records.append((b'X', b'mandatory record'))
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/30736569/attachment.html>
More information about the Mercurial-patches
mailing list