mercurial/debugcommands.py
changeset 37722 89a16704114c
parent 37720 d715a85003c8
child 37823 0e9ddab2bac2
equal deleted inserted replaced
37721:f7673845b167 37722:89a16704114c
  3012             else:
  3012             else:
  3013                 with peer.commandexecutor() as e:
  3013                 with peer.commandexecutor() as e:
  3014                     res = e.callcommand(command, args).result()
  3014                     res = e.callcommand(command, args).result()
  3015 
  3015 
  3016                 if isinstance(res, wireprotov2peer.commandresponse):
  3016                 if isinstance(res, wireprotov2peer.commandresponse):
  3017                     if res.cbor:
  3017                     val = list(res.cborobjects())
  3018                         val = list(res.cborobjects())
       
  3019                     else:
       
  3020                         val = [res.b.getvalue()]
       
  3021 
       
  3022                     ui.status(_('response: %s\n') % stringutil.pprint(val))
  3018                     ui.status(_('response: %s\n') % stringutil.pprint(val))
  3023 
  3019 
  3024                 else:
  3020                 else:
  3025                     ui.status(_('response: %s\n') % stringutil.pprint(res))
  3021                     ui.status(_('response: %s\n') % stringutil.pprint(res))
  3026 
  3022