Mercurial > hg-stable
changeset 37308:0b4692b9646d
bundle: avoid repo.lookup() for converting revnum to nodeid
Differential Revision: https://phab.mercurial-scm.org/D3048
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 02 Apr 2018 15:10:41 -0700 |
parents | 4d69668a65d8 |
children | 88a056437061 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Apr 03 14:39:21 2018 -0700 +++ b/mercurial/commands.py Mon Apr 02 15:10:41 2018 -0700 @@ -1224,8 +1224,8 @@ if dest: raise error.Abort(_("--base is incompatible with specifying " "a destination")) - common = [repo.lookup(rev) for rev in base] - heads = [repo.lookup(r) for r in revs] if revs else None + common = [repo[rev].node() for rev in base] + heads = [repo[r].node() for r in revs] if revs else None outgoing = discovery.outgoing(repo, common, heads) else: dest = ui.expandpath(dest or 'default-push', dest or 'default')