~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: John Arbash Meinel
  • Date: 2007-07-27 19:41:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2660.
  • Revision ID: john@arbash-meinel.com-20070727194103-xj3g89nsqnxsiwpq
Add some more hpss logging.
Also, remove a spurious call to 'get_master_branch()' as part of 'bzr update'

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
                    import traceback
 
112
                    trace.mutter('hpss: Built a new medium: %s',
 
113
                                 medium.__class__.__name__)
 
114
                    trace.mutter('hpss: backtrace:\n%s',
 
115
                                 ''.join(traceback.format_stack()))
 
116
            self._shared_connection = transport._SharedConnection(medium,
 
117
                                                                  credentials)
110
118
 
111
119
        if _client is None:
112
120
            self._client = client._SmartClient(self.get_shared_medium())