Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 38211:86f980a8cacf
hgweb: wrap {edges} of {nodes} of graph with mappinglist
This was a list of mappings.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Apr 2018 20:48:37 +0900 |
parents | fb5803f4fb87 |
children | 0b932b43868f |
comparison
equal
deleted
inserted
replaced
38210:fb5803f4fb87 | 38211:86f980a8cacf |
---|---|
1342 for edge in edges] | 1342 for edge in edges] |
1343 | 1343 |
1344 entry.update({'col': vtx[0], | 1344 entry.update({'col': vtx[0], |
1345 'color': (vtx[1] - 1) % 6 + 1, | 1345 'color': (vtx[1] - 1) % 6 + 1, |
1346 'parity': next(parity), | 1346 'parity': next(parity), |
1347 'edges': edgedata, | 1347 'edges': templateutil.mappinglist(edgedata), |
1348 'row': row, | 1348 'row': row, |
1349 'nextrow': row + 1}) | 1349 'nextrow': row + 1}) |
1350 | 1350 |
1351 yield entry | 1351 yield entry |
1352 | 1352 |