~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-01 18:40:39 UTC
  • mto: This revision was merged to the branch mainline in revision 6237.
  • Revision ID: jelmer@samba.org-20111101184039-xra3ejdqlxjll4s5
bzr serve can now serve remote URLs and things behind directory services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5349
5349
        if protocol is None:
5350
5350
            protocol = transport.transport_server_registry.get()
5351
5351
        host, port = self.get_host_and_port(port)
5352
 
        url = urlutils.local_path_to_url(directory)
 
5352
        url = transport.location_to_url(directory)
5353
5353
        if not allow_writes:
5354
5354
            url = 'readonly+' + url
5355
 
        t = transport.get_transport(url)
 
5355
        t = transport.get_transport_from_url(url)
5356
5356
        try:
5357
5357
            protocol(t, host, port, inet, client_timeout)
5358
5358
        except TypeError, e: