/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

  • Committer: Vincent Ladeuil
  • Date: 2012-01-05 14:26:58 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20120105142658-vek3v6pzlxb751s2
Tests passing for a first rough version of a cached branch config store. The changes here are too invasive and several parallel proposals have been made. 

@only_raises is evil and gave a hard time since any exception during
save_changes() was swallowed.

Possible improvements: 

- add some needs_write_lock decorators to crucial
  methods (_set_config_location ?) but keep locking the branch at higher levels

- decorate branch.unlock to call stack.save if last_lock() it True
  outside of @only_raises scope (evil decorator)

- add @needs_write_lock to stack.set and stack.remove (will probably get
  rid of most testing issues) we probably need a specialized decorator
  that can relay to the store and from there to the branch or whatever is
  needed. This will also helps bzr config to get it right. The
  get_mutable_section trick should not be needed anymore either.

- decorate branch.unlock to call stack.save if last_lock() it True outside
  of @only_raises scope (evil decorator)
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 4797.42.1 15 years ago Vincent Ladeuil Merge 2.0 into 2.1 including fixes for #262450, #3 1.8 KB Diff Download File
test_branch.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.5 KB Diff Download File
test_cat.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.8 KB Diff Download File
test_checkout.py 5195.3.7 15 years ago Parth Malwankar removed unused import. 1.4 KB Diff Download File
test_commit.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 2.5 KB Diff Download File
test_init.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.2 KB Diff Download File
test_init_repository.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.3 KB Diff Download File
test_merge.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.4 KB Diff Download File
test_missing.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.4 KB Diff Download File
test_pull.py 6110.1.1 14 years ago John Arbash Meinel Merge MvG's bugfix for #483661. Needs a couple sma 2 KB Diff Download File
test_push.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.6 KB Diff Download File
test_revert.py 5050.5.1 15 years ago Martin Pool merge trunk to 2.2 preparing for 2.2b2 2 KB Diff Download File
test_update.py 5141.2.1 15 years ago Robert Collins ``bzrlib.commands.Command.run_direct`` is no longe 1.5 KB Diff Download File