/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: Jelmer Vernooij
  • Date: 2006-08-21 13:40:08 UTC
  • Revision ID: jelmer@samba.org-20060821134008-444fdf4dce5ed555
Fix exception when double-clicking revision without parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
        # TODO: more than one parent
413
413
        """Callback for when a treeview row gets activated."""
414
414
        revision = self.model[path][0]
 
415
        if len(self.parent_ids[revision]) == 0:
 
416
            # Ignore revisions without parent
 
417
            return
415
418
        parent_id = self.parent_ids[revision][0]
416
419
        if self.app is not None:
417
420
            self.app.show_diff(self.branch, revision.revision_id, parent_id)