mercurial/hgweb/webutil.py
changeset 37902 2095331ff926
parent 37700 495fbeae63cc
child 37903 450de9cb0b36
--- a/mercurial/hgweb/webutil.py	Fri Apr 27 11:23:41 2018 -0400
+++ b/mercurial/hgweb/webutil.py	Mon Apr 02 00:00:29 2018 +0900
@@ -234,8 +234,8 @@
 def renamelink(fctx):
     r = fctx.renamed()
     if r:
-        return [{'file': r[0], 'node': hex(r[1])}]
-    return []
+        return templateutil.mappinglist([{'file': r[0], 'node': hex(r[1])}])
+    return templateutil.mappinglist([])
 
 def nodetagsdict(repo, node):
     return [{"name": i} for i in repo.nodetags(node)]