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