D3391: commands: use command executor interface

2018-04-16 Thread indygreg (Gregory Szorc)
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=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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D3391: commands: use command executor interface

2018-04-16 Thread indygreg (Gregory Szorc)
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

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



To: indygreg, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel