D3391: commands: use command executor interface
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Apr 16 22:45:20 EDT 2018
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
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
To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list