~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.26.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-01 20:44:35 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070601204435-bd379jw1ux7id111
Finish remote refactoring. Test suite passing.

* bzrlib/transport/remote.py:
(RemoteTransport.__init__): Simplified.
(RemoteTransport._build_medium): New abstract method.
(RemoteTransport.clone): Call the real __class__ constructor and
provide the transport to clone from.
(RemoteTransport._unparse_url): Deleted.
(RemoteTCPTransport.__init__): Deleted.
(RemoteTCPTransport._initial_split_url): New method. Set the
default port.
(RemoteTCPTransport._build_medium): New method.
(RemoteSSHTransport.__init__): Deleted.
(RemoteSSHTransport._build_medium): New method.
(RemoteHTTPTransport.__init__): Updated for cloning.
(RemoteHTTPTransport.abspath): Deleted. The inherited method is
enough.
(RemoteHTTPTransport.clone): Updated for cloning.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: