~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

iter_interesting_nodes no longer buffers record objects.
Instead, it double-requests them, which means that we can now cleanly
clear the refcycle from lazy content manager to the lazy content.
(at the end of get_record_stream()).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2471
2471
        revision_ids = frozenset(revision_ids)
2472
2472
        file_id_revisions = {}
2473
2473
        bytes_to_info = CHKInventory._bytes_to_utf8name_key
2474
 
        for records, items in chk_map.iter_interesting_nodes(self.chk_bytes,
 
2474
        for record, items in chk_map.iter_interesting_nodes(self.chk_bytes,
2475
2475
                    interesting_root_keys, uninteresting_root_keys,
2476
2476
                    pb=pb):
2477
2477
            # This is cheating a bit to use the last grabbed 'inv', but it