--- a/mercurial/templatefilters.py Mon Mar 19 20:39:06 2018 +0900
+++ b/mercurial/templatefilters.py Sun Mar 18 15:14:58 2018 +0900
@@ -354,12 +354,12 @@
def stringescape(text):
return stringutil.escapestr(text)
-@templatefilter('stringify')
+@templatefilter('stringify', intype=bytes)
def stringify(thing):
"""Any type. Turns the value into text by converting values into
text and concatenating them.
"""
- return templateutil.stringify(thing)
+ return thing # coerced by the intype
@templatefilter('stripdir')
def stripdir(text):