Mercurial > public > mercurial-scm > hg
diff mercurial/fileset.py @ 21001:c93bb6a08fa1
bundle2: support chunk iterator as part data
When the `part.data` attribute is an iterator, we assume it is an iterator of
chunks and use it.
We use a chunkbuffer to yield chunks of 4096 bytes.
The tests are updated to use this feature.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 11 Apr 2014 08:04:16 -0700 |
parents | 174d9b8baf5d |
children | 325babf1de93 |