Merge lp:~vila/bzr/917733-cmdline-overrides into lp:bzr/2.5
Proposed by
Vincent Ladeuil
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6445 |
Proposed branch: | lp:~vila/bzr/917733-cmdline-overrides |
Merge into: | lp:bzr/2.5 |
Diff against target: |
40 lines (+11/-2) 2 files modified
bzrlib/commands.py (+8/-2) doc/en/release-notes/bzr-2.5.txt (+3/-0) |
To merge this branch: | bzr merge lp:~vila/bzr/917733-cmdline-overrides |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Review via email: mp+89216@code.launchpad.net |
Commit message
Support scripts that don't call bzrlib.initialize() but still call run_bzr()
Description of the change
Low-risk fix for scripts that, despite calling run_bzr, don't call
bzrlib.intialize().
The long term fix is to properly support this use case which is more
invasive and may require discussion. I've discussed a plan at the rally last
week to get there and will work on that shortly (I need some support from
library_state too for caching local config files targetting a fix for
http://
To post a comment you must log in.
Tested manually with:
#!/usr/bin/python
import bzrlib
from bzrlib import commands
commands. _register_ builtin_ commands( ) install_ bzr_command_ hooks() run_bzr( ['rocks' ])
commands.
import pdb; pdb.set_trace()
commands.
Traceback without the fix, works with it.
No output as the default UI is SilentUIFactory (tarmac uses a more complex setup but will use the same code path in the end).