/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 breezy/builtins.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-12-10 05:22:17 UTC
  • mfrom: (7204.2.2 location)
  • Revision ID: breezy.the.bot@gmail.com-20181210052217-t9imlwao8zlgsm7n
Move location_to_url to its own module.

Merged from https://code.launchpad.net/~jelmer/brz/location/+merge/359384

Show diffs side-by-side

added added

removed removed

Lines of Context:
5625
5625
 
5626
5626
    def run(self, listen=None, port=None, inet=False, directory=None,
5627
5627
            allow_writes=False, protocol=None, client_timeout=None):
5628
 
        from . import transport
 
5628
        from . import location, transport
5629
5629
        if directory is None:
5630
5630
            directory = osutils.getcwd()
5631
5631
        if protocol is None:
5632
5632
            protocol = transport.transport_server_registry.get()
5633
 
        url = transport.location_to_url(directory)
 
5633
        url = location.location_to_url(directory)
5634
5634
        if not allow_writes:
5635
5635
            url = 'readonly+' + url
5636
5636
        t = transport.get_transport_from_url(url)