Patchwork D3050: tests: avoid repo.lookup() for converting revnum to nodeid

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 11:24 p.m.
Message ID <6075d1eb12bd65723c75ab3d04a8c30c@localhost.localdomain>
Download mbox | patch
Permalink /patch/30220/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 11:24 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5da299dabdc1: tests: avoid repo.lookup() for converting revnum to nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3050?vs=7581&id=7590

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

AFFECTED FILES
  tests/test-bundle2-remote-changegroup.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-bundle2-remote-changegroup.t b/tests/test-bundle2-remote-changegroup.t
--- a/tests/test-bundle2-remote-changegroup.t
+++ b/tests/test-bundle2-remote-changegroup.t
@@ -71,8 +71,8 @@ 
   >                part.addparam(k, str(v))
   >         elif verb == 'changegroup':
   >             _common, heads = args.split()
-  >             common.extend(repo.lookup(r) for r in repo.revs(_common))
-  >             heads = [repo.lookup(r) for r in repo.revs(heads)]
+  >             common.extend(repo[r].node() for r in repo.revs(_common))
+  >             heads = [repo[r].node() for r in repo.revs(heads)]
   >             outgoing = discovery.outgoing(repo, common, heads)
   >             cg = changegroup.makechangegroup(repo, outgoing, '01',
   >                                              'changegroup')