[Pkg-bazaar-commits] ./bzr-gtk/unstable r355: Appended branch nick to parent and child popup menus.
Daniel Schierbeck
daniel.schierbeck at gmail.com
Fri Apr 10 07:50:02 UTC 2009
------------------------------------------------------------
revno: 355
committer: Daniel Schierbeck <daniel.schierbeck at gmail.com>
branch nick: menubar
timestamp: Sun 2007-11-04 21:08:58 +0100
message:
Appended branch nick to parent and child popup menus.
modified:
viz/branchwin.py
-------------- next part --------------
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py 2007-11-04 19:53:51 +0000
+++ b/viz/branchwin.py 2007-11-04 20:08:58 +0000
@@ -247,7 +247,12 @@
self.back_button.set_sensitive(True)
for parent_id in parents:
parent = self.branch.repository.get_revision(parent_id)
- item = gtk.MenuItem(parent.message.split("\n")[0])
+ try:
+ str = ' (' + parent.properties['branch-nick'] + ')'
+ except KeyError:
+ str = ""
+
+ item = gtk.MenuItem(parent.message.split("\n")[0] + str)
item.connect('activate', self._set_revision_cb, parent_id)
back_menu.add(item)
back_menu.show_all()
@@ -262,7 +267,12 @@
self.fwd_button.set_sensitive(True)
for child_id in children:
child = self.branch.repository.get_revision(child_id)
- item = gtk.MenuItem(child.message.split("\n")[0])
+ try:
+ str = ' (' + child.properties['branch-nick'] + ')'
+ except KeyError:
+ str = ""
+
+ item = gtk.MenuItem(child.message.split("\n")[0] + str)
item.connect('activate', self._set_revision_cb, child_id)
fwd_menu.add(item)
fwd_menu.show_all()
More information about the Pkg-bazaar-commits
mailing list