/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 viz/branchwin.py

  • Committer: Aaron Bentley
  • Date: 2007-01-17 06:42:55 UTC
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: aaron.bentley@utoronto.ca-20070117064255-x4gznz5e0lyjq3gk
Remove usused span selector

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
1
# -*- coding: UTF-8 -*-
3
2
"""Branch window.
4
3
 
412
411
        # TODO: more than one parent
413
412
        """Callback for when a treeview row gets activated."""
414
413
        revision = self.model[path][0]
 
414
        if len(self.parent_ids[revision]) == 0:
 
415
            # Ignore revisions without parent
 
416
            return
415
417
        parent_id = self.parent_ids[revision][0]
416
418
        if self.app is not None:
417
419
            self.app.show_diff(self.branch, revision.revision_id, parent_id)