~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

Implement Tree.annotate_iter for RevisionTree and WorkingTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    def get_file(self, file_id):
74
74
        return StringIO(self.get_file_text(file_id))
75
75
 
 
76
    def annotate_iter(self, file_id):
 
77
        """See Tree.annotate_iter"""
 
78
        w = self.get_weave(file_id)
 
79
        return w.annotate_iter(self.inventory[file_id].revision)        
 
80
 
76
81
    def get_file_size(self, file_id):
77
82
        return self._inventory[file_id].text_size
78
83