~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-01 20:24:03 UTC
  • mfrom: (1551.10.4 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070201202403-7e92ef4d6842ba85
Treat Permission Denied as a lock failure, not lock contention

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
            self.transport.rename(tmpname, self._held_dir)
221
221
            self._lock_held = True
222
222
            self.confirm()
 
223
        except errors.PermissionDenied:
 
224
            raise
223
225
        except (PathError, DirectoryNotEmpty, FileExists, ResourceBusy), e:
224
226
            mutter("contention on %r: %s", self, e)
225
227
            raise LockContention(self)