Mercurial > hg
changeset 24048:13d88b7eb3a0
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.
author | Eric Sumner <ericsumner@fb.com> |
---|---|
date | Thu, 05 Feb 2015 10:57:45 -0800 |
parents | 731fa8e3e580 |
children | ba272156113f |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Thu Feb 05 10:56:05 2015 -0800 +++ b/mercurial/bundle2.py Thu Feb 05 10:57:45 2015 -0800 @@ -590,6 +590,7 @@ 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')