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

login
register
mail settings
Submitter Yuya Nishihara
Date May 21, 2018, 12:22 p.m.
Message ID <21a9c92342e6b82473fb.1526905365@mimosa>
Download mbox | patch
Permalink /patch/31775/
State Accepted
Headers show

Comments

Yuya Nishihara - May 21, 2018, 12:22 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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,