Merge lp:~vila/bzr/1331999-test-config-warnings into lp:bzr
Status: | Merged |
---|---|
Approved by: | Richard Wilbur |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6598 |
Proposed branch: | lp:~vila/bzr/1331999-test-config-warnings |
Merge into: | lp:bzr |
Diff against target: |
44 lines (+9/-1) 2 files modified
bzrlib/config.py (+4/-1) doc/en/release-notes/bzr-2.7.txt (+5/-0) |
To merge this branch: | bzr merge lp:~vila/bzr/1331999-test-config-warnings |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Richard Wilbur | Approve | ||
Review via email: mp+223701@code.launchpad.net |
Commit message
Bzr config should save the changes explicitly when needed
Description of the change
An atexit handler is used to make bzrlib.config easier for users and save changes in any config store.
This has an side-effect for some blackbox tests and leads to warnings to stderr. It has recently been causing issues with autopkgtest.
Reproduced with:
$ ./bzr selftest -s bt.test_config -s bb.test_config
bzr selftest: /home/vila/
/home/
bzr-2.7.0dev1 python-2.7.6 Linux-3.
-------
Ran 794 tests in 4.406s
OK
Option file in section /tmp/testbzr-
Option file in section DEFAULT of file://
Option file in section /tmp/testbzr-
Option file in section /tmp/testbzr-
Option file in section DEFAULT of file://
Option file in section /tmp/testbzr-
With this fix:
$ ./bzr selftest -s bt.test_config -s bb.test_config
bzr selftest: /home/vila/
/home/
bzr-2.7.0dev1 python-2.7.6 Linux-3.
-------
Ran 794 tests in 4.705s
OK
Thanks Vincent, for the elegant fix!
+2
P.S. 'sections' looks like it was unused. Is that correct?