/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/_annotator_py.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-06 19:16:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4522.
  • Revision ID: john@arbash-meinel.com-20090706191619-lycpcdwo73j2g1cg
Copy the implementation over to the Pyrex version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    def __init__(self, vf):
36
36
        """Create a new Annotator from a VersionedFile."""
37
37
        self._vf = vf
38
 
        self._special_keys = set()
39
38
        self._parent_map = {}
40
39
        self._text_cache = {}
41
40
        # Map from key => number of nexts that will be built from this key
93
92
            # _heads_provider does some graph caching, so it is only valid while
94
93
            # self._parent_map hasn't changed
95
94
            self._heads_provider = None
96
 
        # self._parent_map.update(parent_map)
97
95
        return vf_keys_needed, ann_keys_needed
98
96
 
99
97
    def _get_needed_texts(self, key, pb=None):
226
224
 
227
225
    def add_special_text(self, key, parent_keys, text):
228
226
        """Add a specific text to the graph."""
229
 
        self._special_keys.add(key)
230
227
        self._parent_map[key] = parent_keys
231
228
        self._text_cache[key] = osutils.split_lines(text)
232
229
        self._heads_provider = None