Merge lp:~vila/bzr/907279-override-from-env into lp:bzr
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2012-01-02 |
| Approved revision: | 6397 |
| 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) | 2011-12-22 | Needs Fixing on 2012-01-02 | |
|
Review via email:
|
|||
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.
| Jelmer Vernooij (jelmer) wrote : | # |
There are two whitespaces around 169/170 in the patch, there should just be one.
- 6398. By Vincent Ladeuil on 2012-01-03
-
Address review comments.
| Vincent Ladeuil (vila) wrote : | # |
sent to pqm by email
| Martin Packman (gz) wrote : | # |
The use of osutils.

197 + def setUp(self): onTests, self).setUp()
198 + super(EmailOpti
This seems unnecessary ?