Patchwork [1,of,7] hgweb: wrap {nextentry} of graph with mappinglist

login
register
mail settings
Submitter Yuya Nishihara
Date May 25, 2018, 1:54 p.m.
Message ID <a2ff4a325229bd72a544.1527256451@mimosa>
Download mbox | patch
Permalink /patch/31851/
State Accepted
Headers show

Comments

Yuya Nishihara - May 25, 2018, 1:54 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1522842258 -32400
#      Wed Apr 04 20:44:18 2018 +0900
# Node ID a2ff4a325229bd72a5447abe1efa3a2659fcc50b
# Parent  381060f39eb7e7751a6f168493b77e2744d8ef07
hgweb: wrap {nextentry} of graph with mappinglist

It's a 0/1-length list of a mapping.

Patch

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -1365,7 +1365,7 @@  def graph(web):
         rows=rows,
         bg_height=bg_height,
         changesets=count,
-        nextentry=nextentry,
+        nextentry=templateutil.mappinglist(nextentry),
         jsdata=lambda **x: jsdata(),
         nodes=lambda **x: nodes(),
         node=ctx.hex(),