/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/test_revert.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-24 00:39:50 UTC
  • mto: This revision was merged to the branch mainline in revision 7504.
  • Revision ID: jelmer@jelmer.uk-20200524003950-bbc545r76vc5yajg
Add github action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
    def tree_with_executable(self):
87
87
        tree = self.make_branch_and_tree('tree')
88
 
        tt = tree.transform()
 
88
        tt = tree.get_transform()
89
89
        tt.new_file('newfile', tt.root, [b'helooo!'], b'newfile-id', True)
90
90
        tt.apply()
91
91
        with tree.lock_write():
95
95
 
96
96
    def test_preserve_execute(self):
97
97
        tree = self.tree_with_executable()
98
 
        tt = tree.transform()
 
98
        tt = tree.get_transform()
99
99
        newfile = tt.trans_id_tree_path('newfile')
100
100
        tt.delete_contents(newfile)
101
101
        tt.create_file([b'Woooorld!'], newfile)
111
111
 
112
112
    def test_revert_executable(self):
113
113
        tree = self.tree_with_executable()
114
 
        tt = tree.transform()
 
114
        tt = tree.get_transform()
115
115
        newfile = tt.trans_id_tree_path('newfile')
116
116
        tt.set_executability(False, newfile)
117
117
        tt.apply()