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

John Arbash Meinel john at arbash-meinel.com
Tue Jun 17 20:57:24 BST 2008


-----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:/.

The reason local_path_to_url() does, is because os.abspath('/') return 'C:/' (or
D:/, etc, it depends on $PWD).

Thoughts?
John
=:->


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

iEYEARECAAYFAkhYFyQACgkQJdeBCYSNAAPY7gCgvRucbxSQz1XXLKh3JmKADr5x
2BoAoIquD9+IPte3//cGzI3YZG2H6GxW
=QIoA
-----END PGP SIGNATURE-----



More information about the bazaar mailing list