~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Andrew Bennetts
  • Date: 2008-03-28 08:05:51 UTC
  • mto: This revision was merged to the branch mainline in revision 3321.
  • Revision ID: andrew.bennetts@canonical.com-20080328080551-n7f6rejuycnzn0p8
Change _SmartClient's API to accept a medium and a base, rather than a _SharedConnection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
            self._shared_connection = transport._SharedConnection(medium,
105
105
                                                                  credentials,
106
106
                                                                  self.base)
 
107
        else:
 
108
            if medium is None:
 
109
                medium = self._shared_connection.connection
107
110
 
108
111
        if _client is None:
109
 
            self._client = client._SmartClient(self.get_shared_medium())
 
112
            self._client = client._SmartClient(medium, self.base)
110
113
        else:
111
114
            self._client = _client
112
115