mercurial/debugcommands.py
changeset 37652 fe8c6f9f2914
parent 37647 516b5a5edae3
child 37718 ad1c07008e0b
--- a/mercurial/debugcommands.py	Fri Apr 13 12:30:04 2018 -0700
+++ b/mercurial/debugcommands.py	Fri Apr 13 12:31:34 2018 -0700
@@ -3001,7 +3001,9 @@
                     ui.status(_('remote output: %s\n') %
                               stringutil.escapestr(output))
             else:
-                res = peer._call(command, **pycompat.strkwargs(args))
+                with peer.commandexecutor() as e:
+                    res = e.callcommand(command, args).result()
+
                 ui.status(_('response: %s\n') % stringutil.pprint(res))
 
         elif action == 'batchbegin':