~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Robert Collins
  • Date: 2008-04-08 21:41:15 UTC
  • mto: This revision was merged to the branch mainline in revision 3350.
  • Revision ID: robertc@robertcollins.net-20080408214115-qiz6rr5kyt5mxsyi
 * ``VersionedFile.clear_cache`` and ``enable_cache`` are deprecated.
   These methods added significant complexity to the ``VersionedFile``
   implementation, but were only used for optimising fetches from knits - 
   which can be done from outside the knit layer, or via a caching
   decorator. As knits are not the default format, the complexity is no
   longer worth paying. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
            if '\n' in line[:-1]:
158
158
                raise errors.BzrBadParameterContainsNewline("lines")
159
159
 
 
160
    @deprecated_method(one_four)
160
161
    def enable_cache(self):
161
162
        """Tell this versioned file that it should cache any data it reads.
162
163
        
164
165
        """
165
166
        pass
166
167
    
 
168
    @deprecated_method(one_four)
167
169
    def clear_cache(self):
168
170
        """Remove any data cached in the versioned file object.
169
171