changeset 37758:9b3a348c9b2f

commands: use command executor interface Differential Revision: https://phab.mercurial-scm.org/D3391
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 14 Apr 2018 20:04:59 -0700
parents 2a8ad00b8aed
children aa3f63e02c3c
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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