/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/transport_util.py

  • Committer: Martin Pool
  • Date: 2007-10-10 00:21:57 UTC
  • mfrom: (2900 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2901.
  • Revision ID: mbp@sourcefrog.net-20071010002157-utci0x44m2w47wgd
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        url = _change_scheme_in(url, _backing_scheme, _hooked_scheme)
115
115
        return url
116
116
 
117
 
    def install_hooks(self):
 
117
    def start_logging_connections(self):
118
118
        ConnectionHookedTransport.hooks.install_hook('_set_connection',
119
 
                                                     self.set_connection_hook)
 
119
                                                     self._collect_connection)
120
120
        # uninstall our hooks when we are finished
121
121
        self.addCleanup(self.reset_hooks)
122
122
 
126
126
    def reset_connections(self):
127
127
        self.connections = []
128
128
 
129
 
    def set_connection_hook(self, transport, connection, credentials):
 
129
    def _collect_connection(self, transport, connection, credentials):
130
130
        # Note: uncomment the following line and use 'bt' under pdb, that will
131
131
        # identify all the connections made including the extraneous ones.
132
132
        # import pdb; pdb.set_trace()