[PATCH 8 of 8] hgweb: wrap {entries}* of filelog with mappinglist

Yuya Nishihara yuya at tcha.org
Mon May 21 08:22:45 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1522841872 -32400
#      Wed Apr 04 20:37:52 2018 +0900
# Node ID 21a9c92342e6b82473fbaf266b0b95b2bb924245
# Parent  dc1e2222237534cea84c4d501d8b0ceb0dd2f4e7
hgweb: wrap {entries}* of filelog with mappinglist

They were lists of mappings.

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -1129,10 +1129,10 @@ def filelog(web):
         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,


More information about the Mercurial-devel mailing list