local_path_to_url('/') return file:///C:/ on windows

Martin Pool mbp at canonical.com
Wed Jun 18 00:35:49 BST 2008


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=/'
> on
> 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.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list