diff -r 950294e28136 -r fe8c6f9f2914 mercurial/debugcommands.py --- 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':