# HG changeset patch # User Yuya Nishihara # Date 1410960874 -32400 # Node ID 0a714a1f7d5c0d754e4c566a4372e391144854f8 # Parent b9f7f3eeb99c206897beacc0eb323ab9c178e599 formatter: convert None to json null It will be used by "annotate" command to represent the workingctx revision. diff -r b9f7f3eeb99c -r 0a714a1f7d5c mercurial/formatter.py --- a/mercurial/formatter.py Sun Aug 17 11:35:31 2014 +0900 +++ b/mercurial/formatter.py Wed Sep 17 22:34:34 2014 +0900 @@ -98,6 +98,8 @@ def _jsonifyobj(v): if isinstance(v, tuple): return '[' + ', '.join(_jsonifyobj(e) for e in v) + ']' + elif v is None: + return 'null' elif v is True: return 'true' elif v is False: