~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_annotator_py.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-02 21:43:05 UTC
  • mto: This revision was merged to the branch mainline in revision 4522.
  • Revision ID: john@arbash-meinel.com-20090702214305-sss4k9xd5shtu99z
Enable the new annotator for gc format repos.

Determine that I was accidentally calling _get_needed_keys 2 times,
which was causing the code to double the reference counts, and thus
never free the desired items.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
 
189
189
    def annotate(self, key):
190
190
        """Return annotated fulltext for the given key."""
191
 
        keys = self._get_needed_texts(key)
192
191
        pb = ui.ui_factory.nested_progress_bar()
193
192
        try:
194
193
            for text_key, text, num_lines in self._get_needed_texts(key, pb=pb):