/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: Robert Collins
  • Date: 2007-04-23 02:29:35 UTC
  • mfrom: (2441 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2442.
  • Revision ID: robertc@robertcollins.net-20070423022935-9hhongamvk6bfdso
Resolve conflicts with 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')