~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-26 19:26:33 UTC
  • mfrom: (1885 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1888.
  • Revision ID: john@arbash-meinel.com-20060726192633-576e4ffd1ef9d605
[merge] bzr.dev 1885

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    def copy_to(self, name, transport):
58
58
        """Copy this versioned file to name on transport."""
59
59
        raise NotImplementedError(self.copy_to)
60
 
    
 
60
 
61
61
    @deprecated_method(zero_eight)
62
62
    def names(self):
63
63
        """Return a list of all the versions in this versioned file.
173
173
        if self._access_mode != 'w':
174
174
            raise errors.ReadOnlyObjectDirtiedError(self)
175
175
 
 
176
    def enable_cache(self):
 
177
        """Tell this versioned file that it should cache any data it reads.
 
178
        
 
179
        This is advisory, implementations do not have to support caching.
 
180
        """
 
181
        pass
 
182
    
176
183
    def clear_cache(self):
177
 
        """Remove any data cached in the versioned file object."""
 
184
        """Remove any data cached in the versioned file object.
 
185
 
 
186
        This only needs to be supported if caches are supported
 
187
        """
 
188
        pass
178
189
 
179
190
    def clone_text(self, new_version_id, old_version_id, parents):
180
191
        """Add an identical text to old_version_id as new_version_id.