~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

[merge] jam-integration 1527, including branch-formats, help text, misc bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    def _find_modes(self):
77
77
        """Determine the appropriate modes for files and directories."""
78
78
        try:
79
 
            try:
80
 
                st = self._transport.stat('.')
81
 
            except errors.NoSuchFile:
82
 
                # The .bzr/ directory doesn't exist, try to
83
 
                # inherit the permissions from the parent directory
84
 
                # but only try 1 level up
85
 
                temp_transport = self._transport.clone('..')
86
 
                st = temp_transport.stat('.')
87
 
        except (errors.TransportNotPossible, errors.NoSuchFile):
 
79
            st = self._transport.stat('.')
 
80
        except errors.TransportNotPossible:
88
81
            self._dir_mode = 0755
89
82
            self._file_mode = 0644
90
83
        else: