Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 40017:426cb2859013
debugcommands: print all CBOR objects
application/mercurial-cbor may contain multiple objects. Let's print
all of them.
Differential Revision: https://phab.mercurial-scm.org/D4769
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 26 Sep 2018 14:54:15 -0700 |
parents | d71e0ba34d9b |
children | e2697acd9381 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Wed Oct 03 22:48:19 2018 +0900 +++ b/mercurial/debugcommands.py Wed Sep 26 14:54:15 2018 -0700 @@ -3334,7 +3334,7 @@ ct = res.headers.get(r'Content-Type') if ct == r'application/mercurial-cbor': ui.write(_('cbor> %s\n') % - stringutil.pprint(cborutil.decodeall(body)[0], + stringutil.pprint(cborutil.decodeall(body), bprefix=True, indent=2))