Comment 4 for bug 121195

Revision history for this message
John A Meinel (jameinel) wrote : Re: Change "bzr+ssh://" URLs to "ssh://"

This really should be a mailing list discussion, not a bug report discussion.
I think it would be reasonable to switch to ssh://, there is some ambiguity because of foreign branch support, but no more than svn+http:// et al.

We already use the 'netloc' hack, because we have sftp:// and http+urllib:// and bzr+ssh:// and a lot of other URL protocols and 'netloc' seems extra restrictive about what it will consider using the user@host portion. (We wrap it into a function of bzrlib.transport.register_urlparse_netloc_protocol, which does a double-register check.)

I would prefer for us to continue using "proto://user@host/absolute/path/" for the time being, we can do "proto:user@host" though that causes problems if you ever have paths that genuinely contain a ":" character. On Windows you end up with "C:/", though we can detect that as a single character "protocol" when running on a windows variant (cygwin?).