Mercurial > public > mercurial-scm > hg-stable
diff mercurial/streamclone.py @ 52721:2e82bd50978c
stream: acknowledge the end of the bundle part earlier
See inline documentation and next commit for details.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 28 Nov 2024 11:05:26 +0100 |
parents | ca17d31624ac |
children | 3ee343dd3abf |
line wrap: on
line diff
--- 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)