Merge lp:~vila/bzr/907279-override-from-env into lp:bzr
Proposed by
Vincent Ladeuil
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6411 |
Proposed branch: | lp:~vila/bzr/907279-override-from-env |
Merge into: | lp:bzr |
Diff against target: |
249 lines (+92/-41) 4 files modified
bzrlib/config.py (+48/-35) bzrlib/tests/test_config.py (+36/-6) doc/developers/configuration.txt (+4/-0) doc/en/release-notes/bzr-2.5.txt (+4/-0) |
To merge this branch: | bzr merge lp:~vila/bzr/907279-override-from-env |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Needs Fixing | ||
Review via email: mp+86737@code.launchpad.net |
Commit message
Configuration option value can be overridden by os environ variables
Description of the change
This provides Option.
specifiying environ variables that overrides all configuration options
definitions.
I.e. it matches several use cases, the later encountered being BZR_EMAIL
which I used as an example here.
I was strongly tempted to add an 'env_encoding' parameter to complete the
set but would need some feedback from mgz about the functions to be used in
osutils to get there.
To post a comment you must log in.
197 + def setUp(self): onTests, self).setUp()
198 + super(EmailOpti
This seems unnecessary ?