~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

  • Committer: Aaron Bentley
  • Date: 2006-03-28 20:53:12 UTC
  • mto: (1634.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1635.
  • Revision ID: abentley@panoramicfeedback.com-20060328205312-914ba2c0e85bda7c
Handle lockdirs over NFS properly

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        LockError,
110
110
        LockNotHeld,
111
111
        NoSuchFile,
 
112
        ResourceBusy,
112
113
        UnlockableTransport,
113
114
        )
114
115
from bzrlib.transport import Transport
201
202
            self._lock_held = True
202
203
            self.confirm()
203
204
            return
204
 
        except (DirectoryNotEmpty, FileExists), e:
 
205
        except (DirectoryNotEmpty, FileExists, ResourceBusy), e:
205
206
            pass
206
207
        # fall through to here on contention
207
208
        raise LockContention(self)