diff -r ca17d31624ac -r 2e82bd50978c mercurial/streamclone.py --- a/mercurial/streamclone.py Thu Nov 28 11:05:16 2024 +0100 +++ b/mercurial/streamclone.py Thu Nov 28 11:05:26 2024 +0100 @@ -1115,6 +1115,10 @@ repo.invalidate(clearfilecache=True) progress.complete() + # acknowledge the end of the bundle2 part, this help aligning + # sequential and parallel behavior. + remains = fp.read(1) + assert not remains _report_transferred(repo, start, filecount, byte_count)