From patchwork Tue Apr 3 23:24:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3050: tests: avoid repo.lookup() for converting revnum to nodeid From: phabricator X-Patchwork-Id: 30220 Message-Id: <6075d1eb12bd65723c75ab3d04a8c30c@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Tue, 3 Apr 2018 23:24:32 +0000 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 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')