diff -r 5cc8deb96b48 -r e627cc25b6f3 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sun Jan 05 22:23:31 2025 -0500 +++ b/mercurial/hgweb/webcommands.py Sun Jan 05 22:26:16 2025 -0500 @@ -234,8 +234,7 @@ ctx = web.repo[j] l.append(ctx) l.reverse() - for e in l: - yield e + yield from l for ctx in revgen(): miss = 0 @@ -425,8 +424,7 @@ if pos != -1: revs = web.repo.changelog.revs(pos, 0) - for entry in webutil.changelistentries(web, revs, maxcount, parity): - yield entry + yield from webutil.changelistentries(web, revs, maxcount, parity) if shortlog: revcount = web.maxshortchanges @@ -798,8 +796,7 @@ lm[b'parity'] = next(parity) l.append(lm) - for entry in reversed(l): - yield entry + yield from reversed(l) tip = web.repo[b'tip'] count = len(web.repo)