diff -r b0a4de6c14f8 -r ca7bde5dbafb mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Thu Jul 18 12:03:29 2024 +0200 +++ b/mercurial/hgweb/webcommands.py Thu Jul 18 12:36:12 2024 +0200 @@ -601,7 +601,6 @@ def dirlist(context): for d in sorted(dirs): - emptydirs = [] h = dirs[d] while isinstance(h, dict) and len(h) == 1: @@ -1427,7 +1426,7 @@ return tree def jsdata(context): - for (id, type, ctx, vtx, edges) in fulltree(): + for id, type, ctx, vtx, edges in fulltree(): yield { b'node': pycompat.bytestr(ctx), b'graphnode': webutil.getgraphnode(web.repo, ctx),