-
Committer:
Vincent Ladeuil
-
Date:
2007-07-14 15:22:37 UTC
-
mto:
This revision was merged to the branch mainline in
revision
2646.
-
Revision ID:
v.ladeuil+lp@free.fr-20070714152237-7ay6ua7lvf5n876r
Cleanup connection accessors.
* bzrlib/transport/remote.py:
(RemoteTransport.__init__): Use _SharedConnection.
* bzrlib/transport/__init__.py:
(_SharedConnection): New container class for connections. Avoid
some uglyness in the accessors.
(ConnectedTransport.__init__): Use _SharedConnection.
(ConnectedTransport._set_shared_connection): Deleted.
(ConnectedTransport._set_connection,
ConnectedTransport._get_connection,
ConnectedTransport._get_credentials,
ConnectedTransport._update_credentials): Cleanup.