~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_permissions.py

  • Committer: Robert Collins
  • Date: 2006-02-11 11:58:06 UTC
  • mto: (1534.1.22 integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: robertc@robertcollins.net-20060211115806-732dabc1e35714ed
Give format3 working trees their own last-revision marker.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        # be safe for most operations. But here we want to observe a 
100
100
        # mode change in the control bits, which current do not refresh
101
101
        # when a new lock is taken out.
102
 
        t = WorkingTree('.')
 
102
        t = WorkingTree.open('.')
103
103
        b = t.branch
104
104
        self.assertEqualMode(0755, b.control_files._dir_mode)
105
105
        self.assertEqualMode(0644, b.control_files._file_mode)
119
119
        # Recursively update the modes of all files
120
120
        chmod_r('.bzr', 0664, 0775)
121
121
        check_mode_r(self, '.bzr', 0664, 0775)
122
 
        t = WorkingTree('.')
 
122
        t = WorkingTree.open('.')
123
123
        b = t.branch
124
124
        self.assertEqualMode(0775, b.control_files._dir_mode)
125
125
        self.assertEqualMode(0664, b.control_files._file_mode)
137
137
        # Recursively update the modes of all files
138
138
        chmod_r('.bzr', 0664, 02775)
139
139
        check_mode_r(self, '.bzr', 0664, 02775)
140
 
        t = WorkingTree('.')
 
140
        t = WorkingTree.open('.')
141
141
        b = t.branch
142
142
        self.assertEqualMode(02775, b.control_files._dir_mode)
143
143
        self.assertEqualMode(0664, b.control_files._file_mode)
212
212
        chmod_r('local/.bzr', 0644, 0755)
213
213
        check_mode_r(self, 'local/.bzr', 0644, 0755)
214
214
 
215
 
        t = WorkingTree('local')
 
215
        t = WorkingTree.open('local')
216
216
        b = t.branch
217
217
        self.assertEqualMode(0755, b_local.control_files._dir_mode)
218
218
        self.assertEqualMode(0644, b_local.control_files._file_mode)