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

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

Comments

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

Patch

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})