Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
52720:ca17d31624ac | 52721:2e82bd50978c |
---|---|
1113 # force @filecache properties to be reloaded from | 1113 # force @filecache properties to be reloaded from |
1114 # streamclone-ed file at next access | 1114 # streamclone-ed file at next access |
1115 repo.invalidate(clearfilecache=True) | 1115 repo.invalidate(clearfilecache=True) |
1116 | 1116 |
1117 progress.complete() | 1117 progress.complete() |
1118 # acknowledge the end of the bundle2 part, this help aligning | |
1119 # sequential and parallel behavior. | |
1120 remains = fp.read(1) | |
1121 assert not remains | |
1118 _report_transferred(repo, start, filecount, byte_count) | 1122 _report_transferred(repo, start, filecount, byte_count) |
1119 | 1123 |
1120 | 1124 |
1121 def consumev3(repo, fp) -> None: | 1125 def consumev3(repo, fp) -> None: |
1122 """Apply the contents from a version 3 streaming clone. | 1126 """Apply the contents from a version 3 streaming clone. |