/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/gannotate.py

  • Committer: Adrian Wilkins
  • Date: 2008-04-24 15:26:14 UTC
  • mto: This revision was merged to the branch mainline in revision 470.
  • Revision ID: adrian.wilkins@gmail.com-20080424152614-2rnnljbro6vzqvf7
Detect the reserved null: revision in appropriate places. 

This removes a huge shower of stack traces that get dumped to console when 
you look at the bottom of a log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
 
178
178
    def _activate_selected_revision(self, w):
179
179
        rev_id = self._selected_revision()
180
 
        if rev_id is None:
 
180
        if not rev_id or rev_id == NULL_REVISION:
181
181
            return
182
182
        selected = self.revisions[rev_id]
183
183
        self.revisionview.set_revision(selected)