~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_annotator_pyx.pyx

  • Committer: John Arbash Meinel
  • Date: 2009-07-06 18:59:24 UTC
  • mto: This revision was merged to the branch mainline in revision 4522.
  • Revision ID: john@arbash-meinel.com-20090706185924-qlhn1j607117lgdj
Start implementing an Annotator.add_special_text functionality.

The Python implementation supports it. Basically, it is meant to allow things
like WT and PreviewTree to insert the 'current' content into the graph, so that
we can get local modifications into the annotations.
There is also some work here to get support for texts that are already cached
in the annotator. So that we avoid extracting them, and can shortcut the
history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
                                                this_annotation, parent)
363
363
        self._record_annotation(key, parent_keys, annotations)
364
364
 
 
365
    def add_special_text(self, key, parent_keys, text):
 
366
        """Add a specific text to the graph."""
 
367
 
365
368
    def annotate(self, key):
366
369
        """Return annotated fulltext for the given key."""
367
370
        pb = ui.ui_factory.nested_progress_bar()