/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 breezy/tests/per_workingtree/test_executable.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-10-13 17:31:55 UTC
  • mfrom: (7397.4.9 remove-unused)
  • Revision ID: breezy.the.bot@gmail.com-20191013173155-yoiokny4mknxb3um
Remove Tree.has_id.

Merged from https://code.launchpad.net/~jelmer/brz/remove-unused/+merge/373320

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
                the inventory still shows them, so don't assert that
53
53
                the inventory is empty, just that the tree doesn't have them
54
54
        """
55
 
        tree.lock_read()
56
 
        if not ignore_inv and getattr(tree, 'root_inventory', None):
57
 
            self.assertEqual(
58
 
                [('', tree.root_inventory.root)],
59
 
                list(tree.root_inventory.iter_entries()))
60
 
        self.assertFalse(tree.has_id(self.a_id))
61
 
        self.assertFalse(tree.has_filename('a'))
62
 
        self.assertFalse(tree.has_id(self.b_id))
63
 
        self.assertFalse(tree.has_filename('b'))
64
 
        tree.unlock()
 
55
        with tree.lock_read():
 
56
            if not ignore_inv and getattr(tree, 'root_inventory', None):
 
57
                self.assertEqual(
 
58
                    [('', tree.root_inventory.root)],
 
59
                    list(tree.root_inventory.iter_entries()))
 
60
            self.assertFalse(tree.has_filename('a'))
 
61
            self.assertFalse(tree.has_filename('b'))
65
62
 
66
63
    def commit_and_branch(self):
67
64
        """Commit the current tree, and create a second tree"""