# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-02 06:27:50 # Node ID 70c52800940bf7d198d3fd4a21a1933c60454da0 # Parent e47bd4c71c5e0b61a2a49bab9089fbdbd0e9f67b outgoing: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3053 diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -957,7 +957,7 @@ def _outgoing(ui, repo, dest, opts): ui.status(_('comparing with %s\n') % util.hidepassword(dest)) revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev')) if revs: - revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)] + revs = [repo[rev].node() for rev in scmutil.revrange(repo, revs)] other = peer(repo, opts, dest) outgoing = discovery.findcommonoutgoing(repo, other, revs,