[MERGE][#109143] Support bzr+ssh://host/~/path

John Arbash Meinel john at arbash-meinel.com
Wed Mar 18 15:33:39 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Bennetts wrote:
> This feature is overdue.  It allows you to use URLs like:
> 
>     bzr+ssh://myhost/~/code/foo
> 
> Rather than:
> 
>     bzr+ssh://myhost/home/myuser/code/foo
> 
> This makes bzr+ssh URLs consistent with SFTP URLs.
> 
> I think the only slightly risky thing here is that using /~/ in the URL changes
> the bzr invocation on the remote side from using --directory=/ to --directory=.
> 
> If the server's SSH daemon is configured to only allow “bzr serve --inet
> --directory=/ --allow-writes”, or a branch in the user's home directory depends
> on data outside of their home directory (e.g. due to a shared repository in
> /home/), then /~/ won't work for that user.  But that's not a regression, and
> arguably just a server configuration issue rather than an issue in the client's
> behaviour.
> 
> Enjoy!
> 
> -Andrew.
> 
> 

It would be nice to have something like Launchpad be aware of "~" and
just map it back to "/". That is certainly a server config issue, but
updating bzr_access to do that natively would probably go a long way for
people setting things up themselves.

Otherwise:
 BB:approve

Are there docs that need updating? (Would you be willing to tweak
bzr_access?)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknBFFMACgkQJdeBCYSNAAMr9wCgyUMLM4ejBxHWNhFJhqWVfps2
x4YAoLCgLkQGdmvY1+eqb7idZEsF6/No
=z3PM
-----END PGP SIGNATURE-----



More information about the bazaar mailing list