changeset 52916 | f863fc99bef9 |
parent 52887 | b8da7eed1657 |
child 52919 | 2787db338b15 |
--- a/mercurial/bundle2.py Mon Jan 27 18:08:19 2025 +0100 +++ b/mercurial/bundle2.py Mon Jan 27 18:08:34 2025 +0100 @@ -1467,6 +1467,11 @@ # we read the data, tell it self._initialized = True + def __iter__(self): + for chunk in self._payloadstream: + self._pos += len(chunk) + yield chunk + def _payloadchunks(self): """Generator of decoded chunks in the payload.""" return decodepayloadchunks(self.ui, self._fp)