[Bug 5217] New: mercurial._jsonifyobj crashes on lists
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Apr 21 06:21:20 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5217
Bug ID: 5217
Summary: mercurial._jsonifyobj crashes on lists
Product: Mercurial
Version: default branch
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: timeless at gmail.com
CC: mercurial-devel at selenic.com
If you patch evolve to use the templater and then do hg evolve -l -Tjson, it
crashes:
File "/home/timeless/hg/evolve-main/hgext/evolve.py", line 1739, in evolve
listtroubles(ui, repo, specifiedcategories, **opts)
File "/home/timeless/hg/evolve-main/hgext/evolve.py", line 1586, in
listtroubles
fm.startitem()
File "/home/timeless/hg/crew/mercurial/formatter.py", line 44, in startitem
self._showitem()
File "/home/timeless/hg/crew/mercurial/formatter.py", line 144, in _showitem
self._ui.write(' "%s": %s' % (k, _jsonifyobj(v)))
File "/home/timeless/hg/crew/mercurial/formatter.py", line 124, in
_jsonifyobj
return '"%s"' % encoding.jsonescape(v)
File "/home/timeless/hg/crew/mercurial/encoding.py", line 451, in jsonescape
u8chars = toutf8b(s)
File "/home/timeless/hg/crew/mercurial/encoding.py", line 514, in toutf8b
s.decode('utf-8')
AttributeError: 'list' object has no attribute 'decode'
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list