Show More
@@ -1323,12 +1323,12 b' def graph(web):' | |||
|
1323 | 1323 | if item[1] == graphmod.CHANGESET) |
|
1324 | 1324 | return tree |
|
1325 | 1325 | |
|
1326 | def jsdata(): | |
|
1327 | return [{'node': pycompat.bytestr(ctx), | |
|
1326 | def jsdata(context): | |
|
1327 | for (id, type, ctx, vtx, edges) in fulltree(): | |
|
1328 | yield {'node': pycompat.bytestr(ctx), | |
|
1328 | 1329 | 'graphnode': webutil.getgraphnode(web.repo, ctx), |
|
1329 | 1330 | 'vertex': vtx, |
|
1330 | 1331 | 'edges': edges} |
|
1331 | for (id, type, ctx, vtx, edges) in fulltree()] | |
|
1332 | 1332 | |
|
1333 | 1333 | def nodes(): |
|
1334 | 1334 | parity = paritygen(web.stripecount) |
@@ -1366,7 +1366,7 b' def graph(web):' | |||
|
1366 | 1366 | bg_height=bg_height, |
|
1367 | 1367 | changesets=count, |
|
1368 | 1368 | nextentry=templateutil.mappinglist(nextentry), |
|
1369 |
jsdata= |
|
|
1369 | jsdata=templateutil.mappinggenerator(jsdata), | |
|
1370 | 1370 | nodes=lambda **x: nodes(), |
|
1371 | 1371 | node=ctx.hex(), |
|
1372 | 1372 | changenav=changenav) |
General Comments 0
You need to be logged in to leave comments.
Login now