diff -r 5cc8deb96b48 -r e627cc25b6f3 mercurial/util.py --- a/mercurial/util.py Sun Jan 05 22:23:31 2025 -0500 +++ b/mercurial/util.py Sun Jan 05 22:26:16 2025 -0500 @@ -3024,8 +3024,7 @@ def iterlines(iterator: Iterable[bytes]) -> Iterator[bytes]: for chunk in iterator: - for line in chunk.splitlines(): - yield line + yield from chunk.splitlines() def expandpath(path: bytes) -> bytes: