~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

  • Committer: Martin Pool
  • Date: 2006-02-01 12:24:35 UTC
  • mfrom: (1534.4.32 branch-formats)
  • mto: This revision was merged to the branch mainline in revision 1553.
  • Revision ID: mbp@sourcefrog.net-20060201122435-53f3efb1b5749fe1
[merge] branch-formats branch, and reconcile changes

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: