~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-30 18:19:18 UTC
  • mfrom: (2655.1.4 remove_extra_connect)
  • Revision ID: pqm@pqm.ubuntu.com-20070730181918-3i2gb12zxmvjwh3r
(John Arbash Meinel) remove a spurious get_master_branch() call, to avoid 1 extra remote connection

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import urlparse
28
28
 
29
29
from bzrlib import (
 
30
    debug,
30
31
    errors,
 
32
    trace,
31
33
    transport,
32
34
    urlutils,
33
35
    )
105
107
            credentials = None
106
108
            if medium is None:
107
109
                medium, credentials = self._build_medium()
108
 
            self._shared_connection= transport._SharedConnection(medium,
109
 
                                                                 credentials)
 
110
                if 'hpss' in debug.debug_flags:
 
111
                    trace.mutter('hpss: Built a new medium: %s',
 
112
                                 medium.__class__.__name__)
 
113
            self._shared_connection = transport._SharedConnection(medium,
 
114
                                                                  credentials)
110
115
 
111
116
        if _client is None:
112
117
            self._client = client._SmartClient(self.get_shared_medium())