~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

Reinstate the transaction cache for bzr 1.5rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
                if knit_kind == "file":
173
173
                    self._fetch_weave_text(file_id, revisions)
174
174
                elif knit_kind == "inventory":
175
 
                    # Before we process the inventory we generate the root
176
 
                    # texts (if necessary) so that the inventories references
177
 
                    # will be valid.
 
175
                    # XXX:
 
176
                    # Once we've processed all the files, then we generate the root
 
177
                    # texts (if necessary), then we process the inventory.  It's a
 
178
                    # bit distasteful to have knit_kind == "inventory" mean this,
 
179
                    # perhaps it should happen on the first non-"file" knit, in case
 
180
                    # it's not always inventory?
178
181
                    self._generate_root_texts(revs)
179
 
                    # NB: This currently reopens the inventory weave in source;
180
 
                    # using a full get_data_stream instead would avoid this.
181
182
                    self._fetch_inventory_weave(revs, pb)
182
183
                elif knit_kind == "signatures":
183
184
                    # Nothing to do here; this will be taken care of when