hgweb: wrap {entries}* of filelog with mappinglist
authorYuya Nishihara <yuya@tcha.org>
Wed, 04 Apr 2018 20:37:52 +0900
changeset 38141 53cc81a8caf6
parent 38140 220058198be6
child 38142 cfa93fbbe9b4
hgweb: wrap {entries}* of filelog with mappinglist They were lists of mappings.
mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Wed Apr 04 20:37:03 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Wed Apr 04 20:37:52 2018 +0900
@@ -1129,10 +1129,10 @@
         file=f,
         nav=nav,
         symrev=webutil.symrevorshortnode(web.req, fctx),
-        entries=entries,
+        entries=templateutil.mappinglist(entries),
         descend=descend,
         patch=patch,
-        latestentry=latestentry,
+        latestentry=templateutil.mappinglist(latestentry),
         linerange=linerange,
         revcount=revcount,
         morevars=morevars,