~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.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:
232
232
        if self._nodes_by_key is not None and self._key_length > 1:
233
233
            self._update_nodes_by_key(key, value, node_refs)
234
234
 
 
235
    def clear_cache(self):
 
236
        """See GraphIndex.clear_cache()
 
237
 
 
238
        This is a no-op, but we need the api to conform to a generic 'Index'
 
239
        abstraction.
 
240
        """
 
241
        
235
242
    def finish(self):
236
243
        lines = [_SIGNATURE]
237
244
        lines.append(_OPTION_NODE_REFS + str(self.reference_lists) + '\n')