~bzr-pqm/bzr/bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2012-01-18 14:09:19 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20120118140919-rlvdrhpc0nq1lbwi
Change set/remove to require a lock for the branch config files.

This means that tests (or any plugin for that matter) do not requires an
explicit lock on the branch anymore to change a single option. This also
means the optimisation becomes "opt-in" and as such won't be as
spectacular as it may be and/or harder to get right (nothing fails
anymore).

This reduces the diff by ~300 lines.

Code/tests that were updating more than one config option is still taking
a lock to at least avoid some IOs and demonstrate the benefits through
the decreased number of hpss calls.

The duplication between BranchStack and BranchOnlyStack will be removed
once the same sharing is in place for local config files, at which point
the Stack class itself may be able to host the changes.
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 13 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