/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 bzrlib/transport/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2007-10-08 02:22:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2900.
  • Revision ID: andrew.bennetts@canonical.com-20071008022217-8gxkimbur9vzgbav
Fix bug 146715: bzr+ssh:// and sftp:// should not assume port-not-specified means port 22

Show diffs side-by-side

added added

removed removed

Lines of Context:
1680
1680
register_lazy_transport('file://', 'bzrlib.transport.local', 'LocalTransport')
1681
1681
transport_list_registry.set_default_transport("file://")
1682
1682
 
 
1683
# Note that sftp:// has no default_port, because the user's ~/.ssh/config
 
1684
# can set it to arbitrary values based on hostname.
1683
1685
register_transport_proto('sftp://',
1684
 
            help="Access using SFTP (most SSH servers provide SFTP).",
1685
 
            default_port=22)
 
1686
            help="Access using SFTP (most SSH servers provide SFTP).")
1686
1687
register_lazy_transport('sftp://', 'bzrlib.transport.sftp', 'SFTPTransport')
1687
1688
# Decorated http transport
1688
1689
register_transport_proto('http+urllib://',
1775
1776
register_lazy_transport('bzr+https://',
1776
1777
                        'bzrlib.transport.remote',
1777
1778
                        'RemoteHTTPTransport')
 
1779
# Note that bzr+ssh:// has no default_port, because the user's ~/.ssh/config
 
1780
# can set it to arbitrary values based on hostname.
1778
1781
register_transport_proto('bzr+ssh://',
1779
 
            help="Fast access using the Bazaar smart server over SSH.",
1780
 
            default_port=22)
 
1782
            help="Fast access using the Bazaar smart server over SSH.")
1781
1783
register_lazy_transport('bzr+ssh://',
1782
1784
                        'bzrlib.transport.remote',
1783
1785
                        'RemoteSSHTransport')