~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:45:10 UTC
  • mto: This revision was merged to the branch mainline in revision 4758.
  • Revision ID: john@arbash-meinel.com-20091019154510-tr02ifha84pmo3zh
Add .clear_cache() members to GraphIndexBuilder and BTreeBuilder.

Update GroupCompressVersionedFiles.clear_cache() to clear the graph index's caches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1268
1268
    def clear_cache(self):
1269
1269
        """See VersionedFiles.clear_cache()"""
1270
1270
        self._group_cache.clear()
 
1271
        self._index._graph_index.clear_cache()
1271
1272
 
1272
1273
    def _check_add(self, key, lines, random_id, check_content):
1273
1274
        """check that version_id and lines are safe to add."""