Show More
@@ -515,6 +515,10 b' class templateformatter(baseformatter):' | |||||
515 | if part not in self._parts: |
|
515 | if part not in self._parts: | |
516 | return |
|
516 | return | |
517 | ref = self._parts[part] |
|
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 | self._out.write(self._t.render(ref, item)) |
|
522 | self._out.write(self._t.render(ref, item)) | |
519 |
|
523 | |||
520 | @util.propertycache |
|
524 | @util.propertycache |
@@ -122,7 +122,7 b' Test config default of various types:' | |||||
122 | ] |
|
122 | ] | |
123 | $ hg config --config auth.cookiefile= auth -T'json(defaultvalue)' |
|
123 | $ hg config --config auth.cookiefile= auth -T'json(defaultvalue)' | |
124 | [ |
|
124 | [ | |
125 |
{"defaultvalue": |
|
125 | {"defaultvalue": null} | |
126 | ] |
|
126 | ] | |
127 | $ hg config --config auth.cookiefile= auth -T'{defaultvalue}\n' |
|
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