~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/transport_util.py

  • Committer: Ian Clatworthy
  • Date: 2008-04-30 22:58:40 UTC
  • mfrom: (3256.2.32 hooks)
  • mto: This revision was merged to the branch mainline in revision 3395.
  • Revision ID: ian.clatworthy@canonical.com-20080430225840-d6qrnzxmvpw5v1jg
Add Hooks.install_named_hook (Daniel Watkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
        return url
116
116
 
117
117
    def start_logging_connections(self):
118
 
        ConnectionHookedTransport.hooks.install_hook('_set_connection',
119
 
                                                     self._collect_connection)
 
118
        ConnectionHookedTransport.hooks.install_named_hook(
 
119
            '_set_connection', self._collect_connection, None)
120
120
        # uninstall our hooks when we are finished
121
121
        self.addCleanup(self.reset_hooks)
122
122