~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-12-17 19:55:27 UTC
  • mfrom: (1551.9.21 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20061217195527-29196a8633600671
Add Tree.annotate_iter

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
    def get_file_by_path(self, path):
179
179
        return self.get_file(self._inventory.path2id(path))
180
180
 
 
181
    def annotate_iter(self, file_id):
 
182
        """Return an iterator of revision_id, line tuples
 
183
 
 
184
        For working trees (and mutable trees in general), the special
 
185
        revision_id 'current:' will be used for lines that are new in this
 
186
        tree, e.g. uncommitted changes.
 
187
        :param file_id: The file to produce an annotated version from
 
188
        """
 
189
        raise NotImplementedError(self.annotate_iter)
 
190
 
181
191
    inventory = property(_get_inventory,
182
192
                         doc="Inventory of this Tree")
183
193