~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-20 05:12:09 UTC
  • mfrom: (4744.2.9 2.1-peak-mem-tweak)
  • Revision ID: pqm@pqm.ubuntu.com-20091020051209-telne1xq2bq6cp7m
(jam) In GCCHKStreamSource clear caches after we fetch from a VF

Show diffs side-by-side

added added

removed removed

Lines of Context:
1105
1105
        for stream_info in self._fetch_revision_texts(revision_ids):
1106
1106
            yield stream_info
1107
1107
        self._revision_keys = [(rev_id,) for rev_id in revision_ids]
 
1108
        self.from_repository.revisions.clear_cache()
 
1109
        self.from_repository.signatures.clear_cache()
1108
1110
        yield self._get_inventory_stream(self._revision_keys)
 
1111
        self.from_repository.inventories.clear_cache()
1109
1112
        # TODO: The keys to exclude might be part of the search recipe
1110
1113
        # For now, exclude all parents that are at the edge of ancestry, for
1111
1114
        # which we have inventories
1114
1117
                        self._revision_keys)
1115
1118
        for stream_info in self._get_filtered_chk_streams(parent_keys):
1116
1119
            yield stream_info
 
1120
        self.from_repository.chk_bytes.clear_cache()
1117
1121
        yield self._get_text_stream()
 
1122
        self.from_repository.texts.clear_cache()
1118
1123
 
1119
1124
    def get_stream_for_missing_keys(self, missing_keys):
1120
1125
        # missing keys can only occur when we are byte copying and not