~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-06 20:21:34 UTC
  • mto: This revision was merged to the branch mainline in revision 4522.
  • Revision ID: john@arbash-meinel.com-20090706202134-19iakgxrs3yxi7k7
Tests that VF implementations support .get_annotator()
This also meant supporting no-graph style VF implementations, which
wasn't too bad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1042
1042
        """See VersionedFiles.annotate."""
1043
1043
        return self._factory.annotate(self, key)
1044
1044
 
 
1045
    def get_annotator(self):
 
1046
        return _KnitAnnotator(self)
 
1047
 
1045
1048
    def check(self, progress_bar=None):
1046
1049
        """See VersionedFiles.check()."""
1047
1050
        # This doesn't actually test extraction of everything, but that will
3422
3425
                        pending.update([p for p in parent_keys
3423
3426
                                           if p not in self._all_build_details])
3424
3427
                    else:
3425
 
                        raise ValueError('i dont handle ghosts')
 
3428
                        raise errors.RevisionNotPresent(key, self._vf)
3426
3429
        # Generally we will want to read the records in reverse order, because
3427
3430
        # we find the parent nodes after the children
3428
3431
        records.reverse()