mercurial/debugcommands.py
changeset 37652 fe8c6f9f2914
parent 37647 516b5a5edae3
child 37718 ad1c07008e0b
equal deleted inserted replaced
37651:950294e28136 37652:fe8c6f9f2914
  2999                                                  **pycompat.strkwargs(args))
  2999                                                  **pycompat.strkwargs(args))
  3000                     ui.status(_('result: %s\n') % stringutil.escapestr(res))
  3000                     ui.status(_('result: %s\n') % stringutil.escapestr(res))
  3001                     ui.status(_('remote output: %s\n') %
  3001                     ui.status(_('remote output: %s\n') %
  3002                               stringutil.escapestr(output))
  3002                               stringutil.escapestr(output))
  3003             else:
  3003             else:
  3004                 res = peer._call(command, **pycompat.strkwargs(args))
  3004                 with peer.commandexecutor() as e:
       
  3005                     res = e.callcommand(command, args).result()
       
  3006 
  3005                 ui.status(_('response: %s\n') % stringutil.pprint(res))
  3007                 ui.status(_('response: %s\n') % stringutil.pprint(res))
  3006 
  3008 
  3007         elif action == 'batchbegin':
  3009         elif action == 'batchbegin':
  3008             if batchedcommands is not None:
  3010             if batchedcommands is not None:
  3009                 raise error.Abort(_('nested batchbegin not allowed'))
  3011                 raise error.Abort(_('nested batchbegin not allowed'))