Patchwork [5,of,7] hgweb: wrap {entries}* of changelog with mappinglist

login
register
mail settings
Submitter Yuya Nishihara
Date May 13, 2018, 3:20 a.m.
Message ID <fbec01b4ef2287ede825.1526181602@mimosa>
Download mbox | patch
Permalink /patch/31573/
State Accepted
Headers show

Comments

Yuya Nishihara - May 13, 2018, 3:20 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1522840280 -32400
#      Wed Apr 04 20:11:20 2018 +0900
# Node ID fbec01b4ef2287ede8255e14ac42ac3e6ef79906
# Parent  074088cc1a58201566d9a0c024db122c45149d79
hgweb: wrap {entries}* of changelog 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
@@ -447,9 +447,9 @@  def changelog(web, shortlog=False):
         rev=pos,
         symrev=symrev,
         changesets=count,
-        entries=entries,
-        latestentry=latestentry,
-        nextentry=nextentry,
+        entries=templateutil.mappinglist(entries),
+        latestentry=templateutil.mappinglist(latestentry),
+        nextentry=templateutil.mappinglist(nextentry),
         archives=web.archivelist('tip'),
         revcount=revcount,
         morevars=morevars,