Patchwork D3036: tests: remove dependence on repo.changectx()

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 6:13 p.m.
Message ID <c2e53f502377cb437fc705fe301d10bc@localhost.localdomain>
Download mbox | patch
Permalink /patch/30205/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 6:13 p.m.
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




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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())