D3036: tests: remove dependence on repo.changectx()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Apr 3 14:13:38 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfeced1629f48: tests: remove dependence on repo.changectx() (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3036?vs=7541&id=7573
REVISION DETAIL
https://phab.mercurial-scm.org/D3036
AFFECTED FILES
tests/test-context.py
CHANGE DETAILS
diff --git a/tests/test-context.py b/tests/test-context.py
--- a/tests/test-context.py
+++ b/tests/test-context.py
@@ -52,7 +52,7 @@
data += 'bar\n'
return context.memfilectx(repo, memctx, f, data, 'l' in flags, 'x' in flags)
-ctxa = repo.changectx(0)
+ctxa = repo[0]
ctxb = context.memctx(repo, [ctxa.node(), None], "test diff", ["foo"],
getfilectx, ctxa.user(), ctxa.date())
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list