templatekw: do not directly call .gen
authorYuya Nishihara <yuya@tcha.org>
Sun, 18 Mar 2018 00:11:36 +0900
changeset 37276 45987e2b64f0
parent 37275 83e1bbd48991
child 37277 8c84dc8264dc
templatekw: do not directly call .gen
mercurial/templatekw.py
--- 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)