/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/blackbox/test_remove.py

  • Committer: Jelmer Vernooij
  • Date: 2019-08-11 13:21:03 UTC
  • mfrom: (7379 work)
  • mto: This revision was merged to the branch mainline in revision 7388.
  • Revision ID: jelmer@jelmer.uk-20190811132103-u3ne03yf37c1h57n
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
    def _make_tree_and_add(self, paths):
42
42
        tree = self.make_branch_and_tree('.')
43
 
        tree.lock_write()
44
 
        try:
 
43
        with tree.lock_write():
45
44
            self.build_tree(paths)
46
45
            for path in paths:
47
46
                file_id = path.replace('/', '_').encode('utf-8') + _id
48
47
                tree.add(path, file_id)
49
 
        finally:
50
 
            tree.unlock()
51
48
        return tree
52
49
 
53
50
    def assertFilesDeleted(self, files):