##// END OF EJS Templates
hgweb: wrap {nodes} of graph with mappinggenerator...
Yuya Nishihara -
r38210:fb5803f4 default
parent child Browse files
Show More
@@ -1330,7 +1330,7 b' def graph(web):'
1330 'vertex': vtx,
1330 'vertex': vtx,
1331 'edges': edges}
1331 'edges': edges}
1332
1332
1333 def nodes():
1333 def nodes(context):
1334 parity = paritygen(web.stripecount)
1334 parity = paritygen(web.stripecount)
1335 for row, (id, type, ctx, vtx, edges) in enumerate(tree):
1335 for row, (id, type, ctx, vtx, edges) in enumerate(tree):
1336 entry = webutil.commonentry(web.repo, ctx)
1336 entry = webutil.commonentry(web.repo, ctx)
@@ -1367,7 +1367,7 b' def graph(web):'
1367 changesets=count,
1367 changesets=count,
1368 nextentry=templateutil.mappinglist(nextentry),
1368 nextentry=templateutil.mappinglist(nextentry),
1369 jsdata=templateutil.mappinggenerator(jsdata),
1369 jsdata=templateutil.mappinggenerator(jsdata),
1370 nodes=lambda **x: nodes(),
1370 nodes=templateutil.mappinggenerator(nodes),
1371 node=ctx.hex(),
1371 node=ctx.hex(),
1372 changenav=changenav)
1372 changenav=changenav)
1373
1373
General Comments 0
You need to be logged in to leave comments. Login now