[Pkg-bazaar-commits] ./bzr-gtk/unstable r74: Fix exception when double-clicking revision without parents.
Jelmer Vernooij
jelmer at samba.org
Fri Apr 10 07:49:07 UTC 2009
------------------------------------------------------------
revno: 74
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: bzr-gtk
timestamp: Mon 2006-08-21 15:40:08 +0200
message:
Fix exception when double-clicking revision without parents.
modified:
viz/branchwin.py
-------------- next part --------------
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py 2006-07-29 12:00:31 +0000
+++ b/viz/branchwin.py 2006-08-21 13:40:08 +0000
@@ -412,6 +412,9 @@
# TODO: more than one parent
"""Callback for when a treeview row gets activated."""
revision = self.model[path][0]
+ if len(self.parent_ids[revision]) == 0:
+ # Ignore revisions without parent
+ return
parent_id = self.parent_ids[revision][0]
if self.app is not None:
self.app.show_diff(self.branch, revision.revision_id, parent_id)
More information about the Pkg-bazaar-commits
mailing list