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

Yuya Nishihara yuya at tcha.org
Fri May 25 09:54:11 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at 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.

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(),


More information about the Mercurial-devel mailing list