equal
deleted
inserted
replaced
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 |