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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Apr 3 19:24:32 EDT 2018


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

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



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


More information about the Mercurial-devel mailing list