mercurial/streamclone.py
changeset 52703 2e82bd50978c
parent 52702 ca17d31624ac
child 52909 3ee343dd3abf
--- 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)