~jelmer/ubuntu/maverick/bzr/2.2.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_break_lock.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2009-03-10 14:11:59 UTC
  • mfrom: (1.2.1 upstream) (3.1.68 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090310141159-lwzzo5c1fwrtzgj4
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
    def test_break_lock_everything_locked(self):
72
72
        ### if everything is locked, we should be able to unlock the lot.
73
 
        # however, we dont test breaking the working tree because we 
74
 
        # cannot accurately do so right now: the dirstate lock is held 
 
73
        # however, we dont test breaking the working tree because we
 
74
        # cannot accurately do so right now: the dirstate lock is held
75
75
        # by an os lock, and we need to spawn a separate process to lock it
76
76
        # thne kill -9 it.
77
77
        # sketch of test:
85
85
        branch = bzrlib.branch.Branch.open('checkout')
86
86
        branch.lock_write()
87
87
        branch.unlock()
88
 
        # and a new instance of the master branch 
 
88
        # and a new instance of the master branch
89
89
        mb = branch.get_master_branch()
90
90
        mb.lock_write()
91
91
        mb.unlock()