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