Rev 211: Add a Branch button to commit-notify. in http://people.ubuntu.com/~robertc/baz2.0/plugins/gtk/trunk
Robert Collins
robertc at robertcollins.net
Sat Jul 7 23:02:55 BST 2007
At http://people.ubuntu.com/~robertc/baz2.0/plugins/gtk/trunk
------------------------------------------------------------
revno: 211
revision-id: robertc at robertcollins.net-20070707220245-rqbiv4nerkk7z9oc
parent: robertc at robertcollins.net-20070705050153-o5j4t7fkxe66fbht
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Sun 2007-07-08 08:02:45 +1000
message:
Add a Branch button to commit-notify.
modified:
TODO TODO-20060717135918-egb4rf35n4b9trom-1
__init__.py __init__.py-20060519165329-a1fd52c8a829fcd5
branch.py branch.py-20060718221951-cc4ts04p4d84mjth-1
=== modified file 'TODO'
--- a/TODO 2007-03-23 13:41:56 +0000
+++ b/TODO 2007-07-07 22:02:45 +0000
@@ -15,3 +15,7 @@
- Ability to bind/unbind the branch
- List Bzr options in context menu in a way that makes sense (alphabetically?)
- Allow specifying two revisions in the diff window rather then always diffing between base and working tree
+- For performance BranchDialog should only open each url once. Once opened it
+ should keep a read lock open and only release this when the url is changed.
+ It should also allow the creator of the window to supply an already opened
+ branch, and a revision id.
=== modified file '__init__.py'
--- a/__init__.py 2007-07-05 05:01:53 +0000
+++ b/__init__.py 2007-07-07 22:02:45 +0000
@@ -528,7 +528,13 @@
"""Start the viz program."""
pp = start_viz_window(branch, revision_id)
pp.show()
+ def start_branch(notification=None, action=None, data=None):
+ """Start a Branch dialog"""
+ from bzrlib.plugins.gtk.branch import BranchDialog
+ bd = BranchDialog(remote_path=url)
+ bd.run()
nw.add_action("clicked", "Inspect", start_viz, None)
+ nw.add_action("clicked", "Branch", start_branch, None)
nw.set_timeout(5000)
nw.show()
except Exception, e:
=== modified file 'branch.py'
--- a/branch.py 2007-05-17 16:12:27 +0000
+++ b/branch.py 2007-07-07 22:02:45 +0000
@@ -37,6 +37,7 @@
class BranchDialog(gtk.Dialog):
""" New implementation of the Branch dialog. """
+
def __init__(self, path=None, parent=None, remote_path=None):
""" Initialize the Branch dialog. """
gtk.Dialog.__init__(self, title="Branch - Olive",
More information about the bazaar-commits
mailing list