Merge lp:~simon-kersey/bzr-explorer/add-bzrexec-tool into lp:bzr-explorer
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~simon-kersey/bzr-explorer/add-bzrexec-tool |
Merge into: | lp:bzr-explorer |
Diff against target: |
70 lines (+12/-2) 4 files modified
NEWS (+3/-0) lib/explorer.py (+6/-2) lib/extensions/tools.py (+1/-0) lib/kinds.py (+2/-0) |
To merge this branch: | bzr merge lp:~simon-kersey/bzr-explorer/add-bzrexec-tool |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Clatworthy | Approve | ||
Review via email: mp+22522@code.launchpad.net |
Description of the change
Adds tool type 'bzr-exec'. Tools with this type invoke qrun with the '--execute' option so that the tool command is run immediately, without further user confirmation.
This provides the user with the beginnings of the functionality to allow 'click and do'. At the moment, when using tools, the user has to click the tool and then supply parameter(s) to the command and then click again to run the command.
The next step will be to add functionality to support %(selected)s in the tool action - initially the idea will be to populate this with the selected items from the working tree browser. In this way a tool can be defined that will operate immediately on a selected file.
To test this change add a tool based on 'ls'. Then edit the tools.xml file to change the type to 'bzr-exec'. With the working tree browser visible click on the tool, the results of the ls should be visible.
Hi Simon,
This all looks ok to me. FWIW, your suggested test fails for me gumbling about ...
'QBzrRunDialog' object has no attribute 'init_button_ status' .
That doesn't look like it's your fault though.
Before I merge this, I'd like slightly more detail on your plans. For example, are you planning to make "bzr-exec" a new kind inside tool_dialogs.py? Or a checkbox that only becomes active when the "Bazaar Command" kind is selected? If the latter, maybe we ought to model it that way inside the XML as well?