[PATCH 4 of 7] hgweb: wrap {edges} of {nodes} of graph with mappinglist

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


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1522842517 -32400
#      Wed Apr 04 20:48:37 2018 +0900
# Node ID 454b7e1cf3ab64286c7991fcd45985eb619d04ee
# Parent  84207009ae46b829c61e9fcc5f5cd6d91ab90188
hgweb: wrap {edges} of {nodes} of graph with mappinglist

This was a list of mappings.

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -1344,7 +1344,7 @@ def graph(web):
             entry.update({'col': vtx[0],
                           'color': (vtx[1] - 1) % 6 + 1,
                           'parity': next(parity),
-                          'edges': edgedata,
+                          'edges': templateutil.mappinglist(edgedata),
                           'row': row,
                           'nextrow': row + 1})
 


More information about the Mercurial-devel mailing list