# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-02 06:10:25 # Node ID 5da299dabdc1b11eae46383762c7d8c811e61add # Parent 88a0564370610dd7979c5cd14d190403aafde410 tests: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3050 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 @@ Create an extension to test bundle2 remo > 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')