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

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 10:09 p.m.
Message ID <differential-rev-PHID-DREV-yvc6ig4s7uudltzk7fju-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30211/
State Superseded
Headers show

Comments

phabricator - April 3, 2018, 10:09 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

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

CHANGE DETAILS




To: martinvonz, #hg-reviewers
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')