~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.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:
930
930
    def check_not_reserved_id(version_id):
931
931
        revision.check_not_reserved_id(version_id)
932
932
 
 
933
    def clear_cache(self):
 
934
        """Clear whatever caches this VersionedFile holds.
 
935
 
 
936
        This is generally called after an operation has been performed, when we
 
937
        don't expect to be using this versioned file again soon.
 
938
        """
 
939
 
933
940
    def _check_lines_not_unicode(self, lines):
934
941
        """Check that lines being added to a versioned file are not unicode."""
935
942
        for line in lines: