Patchwork D3391: commands: use command executor interface

login
register
mail settings
Submitter phabricator
Date April 17, 2018, 2:45 a.m.
Message ID <adf68c42d81f561fa510ef1c7d96b8d4@localhost.localdomain>
Download mbox | patch
Permalink /patch/31154/
State Not Applicable
Headers show

Comments

phabricator - April 17, 2018, 2:45 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9b3a348c9b2f: commands: use command executor interface (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3391?vs=8318&id=8364

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

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