~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to TODO

  • Committer: Danny van Heumen
  • Date: 2010-03-09 21:42:11 UTC
  • mto: (4634.139.5 2.0)
  • mto: This revision was merged to the branch mainline in revision 5160.
  • Revision ID: danny@dannyvanheumen.nl-20100309214211-iqh42x6qcikgd9p3
Reverted now-useless TODO list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
. Create low-level hook to check locking
2
 
. Create higher-level hook to check locking (lifeless)
3
 
. Create documentation to explain hooking into locking info, à la:
4
 
Testing locking behaviour
5
 
-------------------------
6
 
 
7
 
You may want to write tests that particular objects are or aren't locked
8
 
during particular operations: see for example `bug 498409`__.  
9
 
 
10
 
 __ https://launchpad.net/bugs/498409
11
 
 
12
 
The `TestCase` base class registers hooks that record lock actions into 
13
 
``._lock_actions`` in this format::
14
 
 
15
 
  [
16
 
    ('acquired', LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/branch-lockc4au55ppz8wdym11z1aq)),
17
 
    ('released', LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/branch-lockc4au55ppz8wdym11z1aq)),
18
 
    ('acquired', LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/repository/lockyxb3rn4sw1oyx1jzkt45)),
19
 
    ('released', LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/repository/lockyxb3rn4sw1oyx1jzkt45)),
20
 
    ('acquired', LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/branch/lockh8c6t28rcjdkgxtndbje)),
21
 
    ('released', LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/branch/lockh8c6t28rcjdkgxtndbje)),
22
 
    ...
23
 
 
24
 
Alternatively you can register your own hooks to make custom assertions:
25
 
see `TestCase._check_locks` for an example.
26
 
 
 
1
For things to do in Bazaar development, see
 
2
 
 
3
https://bugs.launchpad.net/bzr/
 
4
https://blueprints.launchpad.net/bzr/