/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/workingtree_implementations/test_nested_specifics.py

  • Committer: Kent Gibson
  • Date: 2007-03-11 13:44:18 UTC
  • mfrom: (2334 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2350.
  • Revision ID: warthog618@gmail.com-20070311134418-nu57arul94zawbj4
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        self.addCleanup(tree.unlock)
38
38
        self.assertEqual('subtree-revision',
39
39
            tree.inventory['subtree-id'].reference_revision)
 
40
 
 
41
    def test_extract_while_locked(self):
 
42
        tree = self.make_branch_and_tree('.')
 
43
        if not tree.supports_tree_reference():
 
44
            return
 
45
        tree.lock_write()
 
46
        self.addCleanup(tree.unlock)
 
47
        self.build_tree(['subtree/'])
 
48
        tree.add(['subtree'], ['subtree-id'])
 
49
        subtree = tree.extract('subtree-id')