changeset 37276:45987e2b64f0

templatekw: do not directly call .gen
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Mar 2018 00:11:36 +0900
parents 83e1bbd48991
children 8c84dc8264dc
files mercurial/templatekw.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templatekw.py	Sat Mar 17 20:52:50 2018 +0900
+++ b/mercurial/templatekw.py	Sun Mar 18 00:11:36 2018 +0900
@@ -613,10 +613,7 @@
 
     # Format the successorssets
     def render(d):
-        t = []
-        for i in d.gen():
-            t.append(i)
-        return "".join(t)
+        return templateutil.stringify(context, mapping, d)
 
     def gen(data):
         yield "; ".join(render(d) for d in data)