Patchwork D3391: commands: use command executor interface

login
register
mail settings
Submitter phabricator
Date April 16, 2018, 11:05 p.m.
Message ID <differential-rev-PHID-DREV-m7kt74usu74k6pn6rbux-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/31108/
State Superseded
Headers show

Comments

phabricator - April 16, 2018, 11:05 p.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3391

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4035,7 +4035,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