~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.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:
1265
1265
        else:
1266
1266
            return self.get_record_stream(keys, 'unordered', True)
1267
1267
 
 
1268
    def clear_cache(self):
 
1269
        """See VersionedFiles.clear_cache()"""
 
1270
        self._group_cache.clear()
 
1271
        self._index._graph_index.clear_cache()
 
1272
 
1268
1273
    def _check_add(self, key, lines, random_id, check_content):
1269
1274
        """check that version_id and lines are safe to add."""
1270
1275
        version_id = key[-1]