/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Robert Collins
  • Date: 2008-04-09 00:34:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3350.
  • Revision ID: robertc@robertcollins.net-20080409003454-x19fm1n0o2govzh6
 * ``VersionedFile.annotate_iter`` is deprecated. While in principal this
   allows lower memory use, all users of annotations wanted full file 
   annotations, and there is no storage format suitable for incremental
   line-by-line annotation. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
        except KeyError:
423
423
            raise errors.RevisionNotPresent(version_id, self)
424
424
 
 
425
    @deprecated_method(one_four)
425
426
    def annotate_iter(self, version_id):
426
427
        """Yield list of (version-id, line) pairs for the specified
427
428
        version.
429
430
        Must raise RevisionNotPresent if the given version is
430
431
        not present in file history.
431
432
        """
432
 
        raise NotImplementedError(self.annotate_iter)
 
433
        return iter(self.annotate(version_id))
433
434
 
434
435
    def annotate(self, version_id):
435
 
        return list(self.annotate_iter(version_id))
 
436
        """Return a list of (version-id, line) tuples for version_id.
 
437
 
 
438
        :raise RevisionNotPresent: If the given version is
 
439
        not present in file history.
 
440
        """
 
441
        raise NotImplementedError(self.annotate)
436
442
 
437
443
    def join(self, other, pb=None, msg=None, version_ids=None,
438
444
             ignore_missing=False):