/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/repofmt/groupcompress_repo.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-19 15:06:58 UTC
  • mto: This revision was merged to the branch mainline in revision 4758.
  • Revision ID: john@arbash-meinel.com-20091019150658-tot6ofpswqytwzpj
Change to a generic 'VersionedFiles.clear_cache()' api.

The base implementation does nothing, the one for GroupCompressVersionedFiles
only clears the _group_cache so far. We'll do more later.

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._group_cache.clear()
 
1108
        self.from_repository.revisions.clear_cache()
1109
1109
        yield self._get_inventory_stream(self._revision_keys)
1110
 
        self.from_repository.inventories._group_cache.clear()
 
1110
        self.from_repository.inventories.clear_cache()
1111
1111
        # TODO: The keys to exclude might be part of the search recipe
1112
1112
        # For now, exclude all parents that are at the edge of ancestry, for
1113
1113
        # which we have inventories
1116
1116
                        self._revision_keys)
1117
1117
        for stream_info in self._get_filtered_chk_streams(parent_keys):
1118
1118
            yield stream_info
1119
 
        self.from_repository.chk_bytes._group_cache.clear()
 
1119
        self.from_repository.chk_bytes.clear_cache()
1120
1120
        yield self._get_text_stream()
1121
 
        self.from_repository.texts._group_cache.clear()
 
1121
        self.from_repository.texts.clear_cache()
1122
1122
 
1123
1123
    def get_stream_for_missing_keys(self, missing_keys):
1124
1124
        # missing keys can only occur when we are byte copying and not