/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 bzrlib/lockable_files.py

  • Committer: Martin Pool
  • Date: 2008-05-21 03:05:59 UTC
  • mto: This revision was merged to the branch mainline in revision 3445.
  • Revision ID: mbp@sourcefrog.net-20080521030559-z70xlb8mpj5hk027
Remove obsolete LockableFiles._set_file_mode and _set_dir_mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    # _lock_count: If _lock_mode is true, a positive count of the number of
67
67
    # times the lock has been taken *by this process*.   
68
68
    
69
 
    # If set to False (by a plugin, etc) BzrBranch will not set the
70
 
    # mode on created files or directories
71
 
    _set_file_mode = True
72
 
    _set_dir_mode = True
73
 
 
74
69
    def __init__(self, transport, lock_name, lock_class):
75
70
        """Create a LockableFiles group
76
71
 
143
138
            self._dir_mode = (st.st_mode & 07777) | 00700
144
139
            # Remove the sticky and execute bits for files
145
140
            self._file_mode = self._dir_mode & ~07111
146
 
        if not self._set_dir_mode:
147
 
            self._dir_mode = None
148
 
        if not self._set_file_mode:
149
 
            self._file_mode = None
150
141
 
151
142
    def controlfilename(self, file_or_path):
152
143
        """Return location relative to branch."""