~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.42.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-08 08:52:27 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-20070608085227-dkwzu18gxemnwwha
Finish (almost) remote refactoring. Test suite passing.

* bzrlib/transport/remote.py:
(RemoteTransport.__init__): Refactoring of connection
sharing. This is incomplete if we want to achieve connction
sharing across reconnections but enough to make the test suite
pass.
(RemoteTransport.clone): Deleted.
(RemoteTransport._build_medium): Default implementation (mainly
used for tests).
(RemoteTransport.get_smart_client,
RemoteTransport.get_smart_medium): Give back the shared medium
instead of the private one. This is incomplete but a step in the
right direction.
(RemoteTCPTransport._build_medium,
RemoteHTTPTransport._build_medium): Create and set the connection
if not cloning.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: