~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-30 10:12:41 UTC
  • mfrom: (5273.1.11 cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20100630101241-gj9gnm31gj0ptaj7
(vila) Cleanup tests importing get_transport. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4920
4920
 
4921
4921
    def run(self, port=None, inet=False, directory=None, allow_writes=False,
4922
4922
            protocol=None):
4923
 
        from bzrlib.transport import get_transport, transport_server_registry
 
4923
        from bzrlib import transport
4924
4924
        if directory is None:
4925
4925
            directory = os.getcwd()
4926
4926
        if protocol is None:
4927
 
            protocol = transport_server_registry.get()
 
4927
            protocol = transport.transport_server_registry.get()
4928
4928
        host, port = self.get_host_and_port(port)
4929
4929
        url = urlutils.local_path_to_url(directory)
4930
4930
        if not allow_writes:
4931
4931
            url = 'readonly+' + url
4932
 
        transport = get_transport(url)
4933
 
        protocol(transport, host, port, inet)
 
4932
        t = transport.get_transport(url)
 
4933
        protocol(t, host, port, inet)
4934
4934
 
4935
4935
 
4936
4936
class cmd_join(Command):