##// END OF EJS Templates
debugcommands: use our CBOR decoder...
Gregory Szorc -
r39480:e5eb67de default
parent child Browse files
Show More
@@ -32,9 +32,6 b' from .node import ('
32 nullrev,
32 nullrev,
33 short,
33 short,
34 )
34 )
35 from .thirdparty import (
36 cbor,
37 )
38 from . import (
35 from . import (
39 bundle2,
36 bundle2,
40 changegroup,
37 changegroup,
@@ -83,6 +80,7 b' from . import ('
83 wireprotov2peer,
80 wireprotov2peer,
84 )
81 )
85 from .utils import (
82 from .utils import (
83 cborutil,
86 dateutil,
84 dateutil,
87 procutil,
85 procutil,
88 stringutil,
86 stringutil,
@@ -3321,7 +3319,8 b' def debugwireproto(ui, repo, path=None, '
3321
3319
3322 if res.headers.get('Content-Type') == 'application/mercurial-cbor':
3320 if res.headers.get('Content-Type') == 'application/mercurial-cbor':
3323 ui.write(_('cbor> %s\n') %
3321 ui.write(_('cbor> %s\n') %
3324 stringutil.pprint(cbor.loads(body), bprefix=True,
3322 stringutil.pprint(cborutil.decodeall(body)[0],
3323 bprefix=True,
3325 indent=2))
3324 indent=2))
3326
3325
3327 elif action == 'close':
3326 elif action == 'close':
General Comments 0
You need to be logged in to leave comments. Login now