~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-22 18:09:04 UTC
  • mfrom: (2485.8.63 bzr.connection.sharing)
  • Revision ID: pqm@pqm.ubuntu.com-20070722180904-wy7y7oyi32wbghgf
Transport connection sharing

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        self._real_bzrdir = None
53
53
 
54
54
        if _client is None:
55
 
            self._medium = transport.get_smart_client()
56
 
            self._client = client._SmartClient(self._medium)
 
55
            self._shared_medium = transport.get_shared_medium()
 
56
            self._client = client._SmartClient(self._shared_medium)
57
57
        else:
58
58
            self._client = _client
59
 
            self._medium = None
 
59
            self._shared_medium = None
60
60
            return
61
61
 
62
62
        path = self._path_for_remote_call(self._client)
240
240
            self._real_repository = None
241
241
        self.bzrdir = remote_bzrdir
242
242
        if _client is None:
243
 
            self._client = client._SmartClient(self.bzrdir._medium)
 
243
            self._client = client._SmartClient(self.bzrdir._shared_medium)
244
244
        else:
245
245
            self._client = _client
246
246
        self._format = format
767
767
        if _client is not None:
768
768
            self._client = _client
769
769
        else:
770
 
            self._client = client._SmartClient(self.bzrdir._medium)
 
770
            self._client = client._SmartClient(self.bzrdir._shared_medium)
771
771
        self.repository = remote_repository
772
772
        if real_branch is not None:
773
773
            self._real_branch = real_branch