~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Robert Collins
  • Date: 2006-04-03 23:44:36 UTC
  • mfrom: (1558.10.2 nfslocks)
  • mto: This revision was merged to the branch mainline in revision 1635.
  • Revision ID: robertc@robertcollins.net-20060403234436-466c7aadf509e8ca
Merge NFS LockDir support (Aaron Bentley, Robert Collins).

This also introduces a general Transport Decorator in
bzrlib.transport.decorator which can be used to modify the external
behaviour of transports with a small amount of code. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
                raise errors.PermissionDenied(path, extra=e)
156
156
            if e.errno == errno.ENOTEMPTY:
157
157
                raise errors.DirectoryNotEmpty(path, extra=e)
 
158
            if e.errno == errno.EBUSY:
 
159
                raise errors.ResourceBusy(path, extra=e)
158
160
        if raise_generic:
159
161
            raise errors.TransportError(orig_error=e)
160
162
 
778
780
register_lazy_transport('aftp://', 'bzrlib.transport.ftp', 'FtpTransport')
779
781
register_lazy_transport('memory:/', 'bzrlib.transport.memory', 'MemoryTransport')
780
782
register_lazy_transport('readonly+', 'bzrlib.transport.readonly', 'ReadonlyTransportDecorator')
 
783
register_lazy_transport('fakenfs+', 'bzrlib.transport.fakenfs', 'FakeNFSTransportDecorator')