mercurial/debugcommands.py
changeset 39561 d06834e0f48e
parent 39449 e5eb67dea6e8
child 39760 7e99b02768ef
equal deleted inserted replaced
39560:84bf6ded9317 39561:d06834e0f48e
  3238             else:
  3238             else:
  3239                 with peer.commandexecutor() as e:
  3239                 with peer.commandexecutor() as e:
  3240                     res = e.callcommand(command, args).result()
  3240                     res = e.callcommand(command, args).result()
  3241 
  3241 
  3242                 if isinstance(res, wireprotov2peer.commandresponse):
  3242                 if isinstance(res, wireprotov2peer.commandresponse):
  3243                     val = list(res.cborobjects())
  3243                     val = res.objects()
  3244                     ui.status(_('response: %s\n') %
  3244                     ui.status(_('response: %s\n') %
  3245                               stringutil.pprint(val, bprefix=True, indent=2))
  3245                               stringutil.pprint(val, bprefix=True, indent=2))
  3246                 else:
  3246                 else:
  3247                     ui.status(_('response: %s\n') %
  3247                     ui.status(_('response: %s\n') %
  3248                               stringutil.pprint(res, bprefix=True, indent=2))
  3248                               stringutil.pprint(res, bprefix=True, indent=2))