local_path_to_url('/') return file:///C:/ on windows
John Arbash Meinel
john at arbash-meinel.com
Wed Jun 18 01:20:51 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Martin Pool wrote:
| On Wed, Jun 18, 2008 at 5:57 AM, John Arbash Meinel
| <john at arbash-meinel.com> wrote:
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|> I've been trying to figure out if this is intentional behavior or not.
|> Basically, awilkens on IRC noticed that if you do 'bzr serve --directory=/'
|> windows, you still can only serve branches in the current drive.
|> Note that internally, bzr is using the url "file:///C:/...".
|> I just tried doing "bzr serve --directory=file:///", but that actually gets
|> interpreted as $PWD/file:/.
|> I don't see any real reason why we shouldn't be exposing the directory at
|> rather than file:///C:/.
| I think it probably should be file:///. You may of course be able to
| work around that by giving that url on the command line.
| Serving your whole filesystem even readonly may be a bit insecure of
| course, but if it's a home network it might make sense.
It is what bzr+ssh does. 'ssh host bzr serve --inet --directory=/'
If you use "file:///" to give a url, it just treats it as a local path and does
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar