Merge lp:~simon-kersey/bzr-explorer/add-tool-cmd-selected-support into lp:bzr-explorer
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 534 | ||||
Proposed branch: | lp:~simon-kersey/bzr-explorer/add-tool-cmd-selected-support | ||||
Merge into: | lp:bzr-explorer | ||||
Diff against target: |
121 lines (+48/-3) 4 files modified
NEWS (+13/-0) lib/app_suite.py (+2/-0) lib/explorer.py (+32/-3) lib/extensions/tools.py (+1/-0) |
||||
To merge this branch: | bzr merge lp:~simon-kersey/bzr-explorer/add-tool-cmd-selected-support | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexander Belchenko | Approve | ||
Review via email: mp+70794@code.launchpad.net |
This proposal supersedes a proposal from 2010-04-19.
Description of the change
Adds support for population of tool action command placeholder %(wt_selected)s from the items selected in the working tree. It will work with both the classic and qbrowse styles of working tree.
Currently only tested on Windows 7.
To test it:
- Start Bzr Explorer
- Select Tools->Edit My Tools
- Add the following lines to tools.xml:
<tool action="ls %(wt_selected)s" icon="actions/
<tool action="ls %(wt_selected)s" icon="actions/
- Save updated tools.xml
- Open a branch with a working tree that contains sub-directories
- Select a sub-directory in the working tree browser
- Click the 'List' tool in the Toolox (or select from the Tools menu)
- Run Bzr Command dialog should be displayed, 'options and arguments for command' should be populated with selected sub-directory
- Click the 'List Now' tool
- Run Bzr Command dialog should be displayed, automatically running ls command on selected sub-directory
- Change style of working tree (Welcome Tab->Setup and Personalise.
- Repeat tests for different working tree style
NOTE: When using the Classic style of working tree the full path is provided
Ping to myself.