diff mercurial/commands.py @ 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 e7bf5a73e4e1
children 5527aa808dea
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