changeset 37310:5da299dabdc1

tests: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3050
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 01 Apr 2018 23:10:25 -0700
parents 88a056437061
children 2a8939e25d07
files tests/test-bundle2-remote-changegroup.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bundle2-remote-changegroup.t	Mon Apr 02 15:14:31 2018 -0700
+++ b/tests/test-bundle2-remote-changegroup.t	Sun Apr 01 23:10:25 2018 -0700
@@ -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')