~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

Merge the _LazyGroupContentManager, et al.

This allows us to stream GroupCompressBlocks in their compressed form, and unpack them
during insert, rather than during get().

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
        child_pb = ui.ui_factory.nested_progress_bar()
382
382
        try:
383
383
            stream = vf_to_stream(source_vf, keys, message, child_pb)
384
 
            target_vf.insert_record_stream(stream)
 
384
            for _ in target_vf._insert_record_stream(stream,
 
385
                                                     random_id=True,
 
386
                                                     reuse_blocks=False):
 
387
                pass
385
388
        finally:
386
389
            child_pb.finished()
387
390
 
412
415
        try:
413
416
            for stream in self._get_chk_streams(source_vf, total_keys,
414
417
                                                pb=child_pb):
415
 
                target_vf.insert_record_stream(stream)
 
418
                for _ in target_vf._insert_record_stream(stream,
 
419
                                                         random_id=True,
 
420
                                                         reuse_blocks=False):
 
421
                    pass
416
422
        finally:
417
423
            child_pb.finished()
418
424