##// END OF EJS Templates
formatter: fix handling of None value in templater mapping...
Yuya Nishihara -
r43645:7e20b705 stable
parent child Browse files
Show More
@@ -515,6 +515,10 b' class templateformatter(baseformatter):'
515 515 if part not in self._parts:
516 516 return
517 517 ref = self._parts[part]
518 # None can't be put in the mapping dict since it means <unset>
519 for k, v in item.items():
520 if v is None:
521 item[k] = templateutil.wrappedvalue(v)
518 522 self._out.write(self._t.render(ref, item))
519 523
520 524 @util.propertycache
@@ -122,7 +122,7 b' Test config default of various types:'
122 122 ]
123 123 $ hg config --config auth.cookiefile= auth -T'json(defaultvalue)'
124 124 [
125 {"defaultvalue": ""}
125 {"defaultvalue": null}
126 126 ]
127 127 $ hg config --config auth.cookiefile= auth -T'{defaultvalue}\n'
128 128
General Comments 0
You need to be logged in to leave comments. Login now