Merge lp:~vila/bzr/832064-default-value-callable into lp:bzr
Proposed by
Vincent Ladeuil
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6355 |
Proposed branch: | lp:~vila/bzr/832064-default-value-callable |
Merge into: | lp:bzr |
Diff against target: |
91 lines (+29/-3) 3 files modified
bzrlib/config.py (+13/-3) bzrlib/tests/test_config.py (+13/-0) doc/en/release-notes/bzr-2.5.txt (+3/-0) |
To merge this branch: | bzr merge lp:~vila/bzr/832064-default-value-callable |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Approve | ||
Review via email: mp+85155@code.launchpad.net |
Commit message
Allow callables to be used to specify config option default values
Description of the change
Easy fix for a medium bug allowing more options to be migrated trivially.
When registering an option, it is now possible to specify a python callable
which must return a unicode string (from_unicode will be called if/when
needed).
To post a comment you must log in.
sent to pqm by email