~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.32.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-03 12:58:49 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-20070603125849-hn65adfp30185xyu
Keep credentials used at connection creation for reconnection purposes.

* bzrlib/transport/__init__.py:
(ConnectedTransport._init_connection): New method. Keep related
code together.
(ConnectedTransport._set_connection): Add a credentials parameter.
(ConnectedTransport._get_credentials): New method.

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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: