lp:~florian-rathgeber/bzr-externals/fix-options-registry-lp-954663
Created by
Florian Rathgeber
and last modified
- Get this branch:
- bzr branch lp:~florian-rathgeber/bzr-externals/fix-options-registry-lp-954663
Only
Florian Rathgeber
can upload to this branch. If you are
Florian Rathgeber
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
Merged
into
lp:bzr-externals
- Eugene Tarasenko: Approve
- Martin Packman (community): Approve
-
Diff: 13 lines (+2/-1)1 file modifiedcommands.py (+2/-1)
Related bugs
Bug #954663: Querying available plugin options crashes with KeyError: 'dry-run' | Undecided | Fix Committed |
Related blueprints
Branch information
Recent revisions
- 52. By Florian Rathgeber
-
Properly register the 'dry-run' option with bzrlib (fixes #954663)
As of bzr 2.5 'dry-run' is not an automatically registered global option
anymore. Hence querying valid options for the plugin in
bzrlib.commands. options fails with KeyError: 'dry-run'. This is
particularly annoying since this query is used to determine possible
bash completions i.e. bzr crashes each time you hit Tab in a bzr command
line.Fix this issue by registering 'dry-run' as a bzrlib.
option. Option
instead of a strings. Strings get looked up in a global options
dictionary and 'dry-run' is not in there any more as of bzr 2.5.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:bzr-externals