mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
bundle2: seek in part iterator
When iterating over bundle2 parts, add a seek to the iterator so that processing will continue normally even if the entire part isn't consumed.
This commit is contained in:
parent
bf8078ff25
commit
226e333215
@ -590,6 +590,7 @@ class unbundle20(unpackermixin):
|
||||
while headerblock is not None:
|
||||
part = unbundlepart(self.ui, headerblock, self._fp)
|
||||
yield part
|
||||
part.seek(0, 2)
|
||||
headerblock = self._readpartheader()
|
||||
self.ui.debug('end of bundle2 stream\n')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user