~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_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:
2467
2467
            # This is cheating a bit to use the last grabbed 'inv', but it
2468
2468
            # works
2469
2469
            for name, bytes in items:
 
2470
                # TODO: We should use something cheaper than _bytes_to_entry,
 
2471
                #       which has to .decode() the entry name, etc.
 
2472
                #       We only care about a couple of the fields in the bytes.
2470
2473
                entry = inv._bytes_to_entry(bytes)
2471
2474
                if entry.name == '' and not rich_root:
2472
2475
                    continue