Comments
Patch
@@ -324,6 +324,8 @@ def stringify(thing):
""":stringify: Any type. Turns the value into text by converting values into
text and concatenating them.
"""
+ if thing is None:
+ return ''
if util.safehasattr(thing, '__iter__') and not isinstance(thing, str):
return "".join([stringify(t) for t in thing if t is not None])
return str(thing)
@@ -56,6 +56,10 @@ because there are several ways to:
$ hg log -r 'wdir()' -T '{node}\n'
+ $ hg log -r 'wdir()' -T '{rev}\n'
+
+ $ hg log -r 'wdir()' -T '{rev|stringify}\n'
+
Quoting for ui.logtemplate