/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Robert Collins
  • Date: 2008-04-08 00:57:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3350.
  • Revision ID: robertc@robertcollins.net-20080408005707-jzx5nkcjvsiw7r12
 * ``VersionedFileStore`` no longer uses the transaction parameter given
   to most methods; amongst other things this means that the
   get_weave_or_empty method no longer guarantees errors on a missing weave
   in a readonly transaction, and no longer caches versioned file instances
   which reduces memory pressure (but requires more careful management by
   callers to preserve performance.  (Robert Collins)

Show diffs side-by-side

added added

removed removed

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