library state will require explicit initialisation (but not yet)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Vincent Ladeuil |
Bug Description
previously it was possible to import from bzrlib without initializing it explicitly. In bzr.dev this no longer works:
$ python fetch.py
Traceback (most recent call last):
File "fetch.py", line 3, in <module>
from bzrlib.branch import Branch
File "/home/
__format5 = BzrBranchFormat5()
File "/home/
self.
File "/home/
obj = _replace()
File "/home/
obj = factory(self, scope, name)
File "/home/
module = __import_
File "/home/
format_name = config.
File "/home/
[bzrlib.
AttributeError: 'NoneType' object has no attribute 'cmdline_overrides'
Marking this as critical as almost all 3rd party users don't call .initialize.
Related branches
- Jelmer Vernooij (community): Approve
- Martin Pool: Approve
-
Diff: 64 lines (+13/-3)2 files modifiedbzrlib/config.py (+10/-3)
doc/en/release-notes/bzr-2.5.txt (+3/-0)
Changed in bzr: | |
assignee: | nobody → Vincent Ladeuil (vila) |
status: | Confirmed → In Progress |
summary: |
- now requires explicit initialization + library state now requires explicit initialization |
Changed in bzr: | |
milestone: | none → 2.5b2 |
summary: |
- library state now requires explicit initialization + library state now (yet) requires explicit initialization |
summary: |
- library state now (yet) requires explicit initialization + library state will requires explicit initialization (but not yet) |
Changed in bzr: | |
status: | In Progress → Fix Released |
summary: |
- library state will requires explicit initialization (but not yet) + library state will requires explicit initialisation (but not yet) |
summary: |
- library state will requires explicit initialisation (but not yet) + library state will require explicit initialisation (but not yet) |