# HG changeset patch # User Gregory Szorc # Date 1523761499 25200 # Node ID 9b3a348c9b2fa290fda8a8d1fe8afb987d2fc9e7 # Parent 2a8ad00b8aed5e9d9802f182aeef0d52e5b25ad6 commands: use command executor interface Differential Revision: https://phab.mercurial-scm.org/D3391 diff -r 2a8ad00b8aed -r 9b3a348c9b2f mercurial/commands.py --- a/mercurial/commands.py Sat Apr 14 18:36:00 2018 -0700 +++ b/mercurial/commands.py Sat Apr 14 20:04:59 2018 -0700 @@ -4037,7 +4037,9 @@ oldrevs = revs revs = [] # actually, nodes for r in oldrevs: - node = other.lookup(r) + with other.commandexecutor() as e: + node = e.callcommand('lookup', {'key': r}).result() + revs.append(node) if r == checkout: checkout = node