~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/server.py

  • Committer: Jelmer Vernooij
  • Date: 2011-07-23 16:33:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6045.
  • Revision ID: jelmer@samba.org-20110723163338-mjox55g52kt3u922
Add get_transport_from_url and get_transport_from_path functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
330
330
        chroot_server = chroot.ChrootServer(transport)
331
331
        chroot_server.start_server()
332
332
        self.cleanups.append(chroot_server.stop_server)
333
 
        transport = _mod_transport.get_transport(chroot_server.get_url())
 
333
        transport = _mod_transport.get_transport_from_url(chroot_server.get_url())
334
334
        if self.base_path is not None:
335
335
            # Decorate the server's backing transport with a filter that can
336
336
            # expand homedirs.
337
337
            expand_userdirs = self._make_expand_userdirs_filter(transport)
338
338
            expand_userdirs.start_server()
339
339
            self.cleanups.append(expand_userdirs.stop_server)
340
 
            transport = _mod_transport.get_transport(expand_userdirs.get_url())
 
340
            transport = _mod_transport.get_transport_from_url(expand_userdirs.get_url())
341
341
        self.transport = transport
342
342
 
343
343
    def _make_smart_server(self, host, port, inet):