~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-02 22:42:19 UTC
  • mto: (1634.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1635.
  • Revision ID: robertc@robertcollins.net-20060402224219-d5a818dc987491fe
Refactor the FakeNFS support into a TransportDecorator.
 * Move the existing boilerplate ReadOnly decorator logic in to a base class
   'bzrlib.transport.decorator.TransportDecorator.'
 * Do the same to the ReadOnlyServer to create
   'bzrlib.transport.decorator.DecoratorServer'.
 * Use the new decorator support to create a trivial FakeNFSTransportDecorator
   class in bzrlib.transport.fakenfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
780
780
register_lazy_transport('aftp://', 'bzrlib.transport.ftp', 'FtpTransport')
781
781
register_lazy_transport('memory:/', 'bzrlib.transport.memory', 'MemoryTransport')
782
782
register_lazy_transport('readonly+', 'bzrlib.transport.readonly', 'ReadonlyTransportDecorator')
 
783
register_lazy_transport('fakenfs+', 'bzrlib.transport.fakenfs', 'FakeNFSTransportDecorator')