/brz/remove-bazaar

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

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_revert.py

  • Committer: Robert Collins
  • Date: 2010-05-05 00:05:29 UTC
  • mto: This revision was merged to the branch mainline in revision 5206.
  • Revision ID: robertc@robertcollins.net-20100505000529-ltmllyms5watqj5u
Make 'pydoc bzrlib.tests.build_tree_shape' useful.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
import os
18
 
from breezy import (
 
18
from bzrlib import (
19
19
    branch,
20
20
    builtins,
21
21
    errors,
22
22
    lock,
23
23
    )
24
 
from breezy.tests import (
 
24
from bzrlib.tests import (
25
25
    transport_util,
26
26
    TestCaseInTempDir,
27
27
    )
38
38
        locks_acquired = []
39
39
        locks_released = []
40
40
        lock.Lock.hooks.install_named_hook('lock_acquired',
41
 
                                           locks_acquired.append, None)
 
41
            locks_acquired.append, None)
42
42
        lock.Lock.hooks.install_named_hook('lock_released',
43
 
                                           locks_released.append, None)
 
43
            locks_released.append, None)
44
44
 
45
45
        # execute the revert command (There is nothing to actually revert,
46
46
        # but locks are acquired either way.)
58
58
        # make sure that the locks are checkout locks.
59
59
        self.assertEndsWith(locks_acquired[0].lock_url, "/checkout/lock")
60
60
        self.assertEndsWith(locks_released[0].lock_url, "/checkout/lock")
 
61