~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.30.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-02 16:54:28 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-20070602165428-sgwamqtdhksglmlu
Implement reliable connection sharing.

* bzrlib/transport/__init__.py:
(ConnectedTransport.__init__): Use a list to contain the
connection to ensure proper sharing when transports needs to
reconnect or if transport is cloned before creating the
connection.

* bzrlib/tests/test_transport.py:
(TestConnectedTransport.test_connection_sharing): New tests.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: