lp://qastaging/~vila/bzr/525571-lock-bazaar-conf-files
- Get this branch:
- bzr branch lp://qastaging/~vila/bzr/525571-lock-bazaar-conf-files
Branch merges
- Robert Collins (community): Needs Fixing
-
Diff: 893 lines (+410/-101) (has conflicts)6 files modifiedNEWS (+15/-0)
bzrlib/builtins.py (+27/-14)
bzrlib/config.py (+130/-29)
bzrlib/tests/blackbox/test_break_lock.py (+44/-20)
bzrlib/tests/test_commands.py (+1/-1)
bzrlib/tests/test_config.py (+193/-37)
Related bugs
Bug #525571: No locking when updating files in ~/.bazaar | High | Fix Released |
Related blueprints
Branch information
Recent revisions
- 5332. By Vincent Ladeuil
-
Implement the --conf option for break-lock as per lifeless suggestion.
* bzrlib/errors.py:
(NoLockDir): Useless, deleted.* bzrlib/config.py:
(LockableConfig.unlock) : NoLockDir is useless, break_lock()
silenty succeeds if the directory doesn't exist.* bzrlib/
tests/blackbox/ test_break_ lock.py:
Tweak the tests.* bzrlib/builtins.py:
(cmd_break_lock): Fix docstring, add a --conf option to deal with
config files. - 5331. By Vincent Ladeuil
-
Add a test to help LockableConfig daughter classes identify methods that needs to be decorated.
- 5327. By Vincent Ladeuil
-
Revert the lock scope to a sane value.
* bzrlib/
tests/test_ config. py:
(TestLockableConfig.test_ writes_ are_serialized)
(TestLockableConfig.test_ read_while_ writing) : Fix the fallouts. * bzrlib/config.py:
(LockableConfig): Wrong idea, the lock needs to be taken arond the
whole value update call, reducing the lock scope to
_write_config_file exclude the config file re-read.
(GlobalConfig.set_user_ option, GlobalConfig. set_alias)
(GlobalConfig.unset_alias, LocationConfig. set_user_ option) : These
methods needs to be decorated with needs_write_lock to enforce the
design constraints (lock, re-read config, set new value, write
config, unlock).
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://qastaging/bzr