/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: Jelmer Vernooij
  • Date: 2018-11-06 01:18:08 UTC
  • mfrom: (7143 work)
  • mto: This revision was merged to the branch mainline in revision 7151.
  • Revision ID: jelmer@jelmer.uk-20181106011808-y870f4vq0ork3ahu
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
    def setUp(self):
31
31
        super(TestExecutable, self).setUp()
32
 
        self.a_id = "a-20051208024829-849e76f7968d7a86"
33
 
        self.b_id = "b-20051208024829-849e76f7968d7a86"
 
32
        self.a_id = b"a-20051208024829-849e76f7968d7a86"
 
33
        self.b_id = b"b-20051208024829-849e76f7968d7a86"
34
34
        wt = self.make_branch_and_tree('b1')
35
35
        b = wt.branch
36
36
        tt = TreeTransform(wt)
37
 
        tt.new_file('a', tt.root, 'a test\n', self.a_id, True)
38
 
        tt.new_file('b', tt.root, 'b test\n', self.b_id, False)
 
37
        tt.new_file('a', tt.root, [b'a test\n'], self.a_id, True)
 
38
        tt.new_file('b', tt.root, [b'b test\n'], self.b_id, False)
39
39
        tt.apply()
40
40
 
41
41
        self.wt = wt
43
43
    def check_exist(self, tree):
44
44
        """Just check that both files have the right executable bits set"""
45
45
        tree.lock_read()
46
 
        self.assertTrue(tree.is_executable('a'),
47
 
                        "'a' lost the execute bit")
48
 
        self.assertFalse(tree.is_executable('b'),
49
 
                    "'b' gained an execute bit")
 
46
        self.assertTrue(tree.is_executable('a'), "'a' lost the execute bit")
 
47
        self.assertFalse(tree.is_executable('b'), "'b' gained an execute bit")
50
48
        tree.unlock()
51
49
 
52
50
    def check_empty(self, tree, ignore_inv=False):