[Pkg-bazaar-commits] ./bzr-gtk/unstable r290: Merge a fix from Gary.

Szilveszter Farkas (Phanatic) Szilveszter.Farkas at gmail.com
Fri Apr 10 07:49:17 UTC 2009


------------------------------------------------------------
revno: 290
committer: Szilveszter Farkas (Phanatic) <Szilveszter.Farkas at gmail.com>
branch nick: trunk
timestamp: Mon 2007-10-01 10:37:33 +0200
message:
  Merge a fix from Gary.
modified:
  viz/branchwin.py
    ------------------------------------------------------------
    revno: 289.1.1
    committer: Gary van der Merwe <garyvdm at gmail.com>
    branch nick: gtk
    timestamp: Mon 2007-10-01 10:19:05 +0200
    message:
      Fix vizchanges regression: Dbl click on a revision was not bringing up
      the diff window.
    modified:
      viz/branchwin.py
-------------- next part --------------
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py	2007-09-26 18:54:49 +0000
+++ b/viz/branchwin.py	2007-10-01 08:19:05 +0000
@@ -314,10 +314,11 @@
     def _treeview_row_activated_cb(self, widget, path, col):
         # TODO: more than one parent
         """Callback for when a treeview row gets activated."""
-        revision = self.selected_revision(path)
-        if len(self.parent_ids[revision]) == 0:
+        revision_id = self.model[path][treemodel.REVID]
+        parents = self.model[path][treemodel.PARENTS]
+        if len(parents) == 0:
             # Ignore revisions without parent
             return
-        parent_id = self.parent_ids[revision][0]
-        self.show_diff(self.branch, revision.revision_id, parent_id)
+        parent_id = parents[0]
+        self.show_diff(self.branch, revision_id, parent_id)
         self.treeview.grab_focus()



More information about the Pkg-bazaar-commits mailing list