~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.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:
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
 
1268
1272
    def _check_add(self, key, lines, random_id, check_content):
1269
1273
        """check that version_id and lines are safe to add."""
1270
1274
        version_id = key[-1]