equal
deleted
inserted
replaced
599 b"permissions": mf.flags(full), |
599 b"permissions": mf.flags(full), |
600 } |
600 } |
601 |
601 |
602 def dirlist(context): |
602 def dirlist(context): |
603 for d in sorted(dirs): |
603 for d in sorted(dirs): |
604 |
|
605 emptydirs = [] |
604 emptydirs = [] |
606 h = dirs[d] |
605 h = dirs[d] |
607 while isinstance(h, dict) and len(h) == 1: |
606 while isinstance(h, dict) and len(h) == 1: |
608 k, v = next(iter(h.items())) |
607 k, v = next(iter(h.items())) |
609 if v: |
608 if v: |
1425 if item[1] == graphmod.CHANGESET |
1424 if item[1] == graphmod.CHANGESET |
1426 ) |
1425 ) |
1427 return tree |
1426 return tree |
1428 |
1427 |
1429 def jsdata(context): |
1428 def jsdata(context): |
1430 for (id, type, ctx, vtx, edges) in fulltree(): |
1429 for id, type, ctx, vtx, edges in fulltree(): |
1431 yield { |
1430 yield { |
1432 b'node': pycompat.bytestr(ctx), |
1431 b'node': pycompat.bytestr(ctx), |
1433 b'graphnode': webutil.getgraphnode(web.repo, ctx), |
1432 b'graphnode': webutil.getgraphnode(web.repo, ctx), |
1434 b'vertex': vtx, |
1433 b'vertex': vtx, |
1435 b'edges': edges, |
1434 b'edges': edges, |