~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Martin Pool
  • Date: 2009-07-24 03:15:56 UTC
  • mfrom: (4565 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4566.
  • Revision ID: mbp@sourcefrog.net-20090724031556-5zyef6f1ixtn6r3z
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import urllib
31
31
 
32
32
from bzrlib import (
 
33
    annotate,
33
34
    errors,
34
35
    groupcompress,
35
36
    index,
174
175
        self.key = key
175
176
        self.parents = None
176
177
 
 
178
    def get_bytes_as(self, storage_kind):
 
179
        raise ValueError('A request was made for key: %s, but that'
 
180
                         ' content is not available, and the calling'
 
181
                         ' code does not handle if it is missing.'
 
182
                         % (self.key,))
 
183
 
177
184
 
178
185
class AdapterFactory(ContentFactory):
179
186
    """A content factory to adapt between key prefix's."""
1122
1129
            result.append((prefix + (origin,), line))
1123
1130
        return result
1124
1131
 
 
1132
    def get_annotator(self):
 
1133
        return annotate.Annotator(self)
 
1134
 
1125
1135
    def check(self, progress_bar=None):
1126
1136
        """See VersionedFiles.check()."""
1127
1137
        for prefix, vf in self._iter_all_components():