[BUG] transport.local: when local path given in url form

Robert Collins robertc at robertcollins.net
Mon Jan 9 22:50:26 GMT 2006


On Mon, 2006-01-09 at 12:57 -0600, John Arbash Meinel wrote:
> Alexander Belchenko wrote:
> > When I run push command with local path that given in url form with
> > 'file://' prefix I got error:
> > 
> > E:\work\Python\bzr\bzr.dev>python bzr push file://d:/push/bzr.dev
> > bzr: ERROR: Path u'E:/work/Python/bzr/bzr.dev/file:/d:/push/bzr.dev' is
> > not a child of path u'd:/push'
> > 
> > I think it's because LocalTransport.relpath() method does not handle
> > this case (when path specified with 'file://' prefix).
> > 
> > -- 
> > Alexander
> > 
> > 
> 
> Yeah, I think LocalTransport is supposed to strip off the file:// stuff.

it could normalise locally, or it could keep it in url form - I dont
have a string preference.

> I'm not really sure what a correct windows file:// url looks like. I
> know on linux you end up with triple slashes "file:///usr/local/foo".
> I assume that you can go to your browser and type:
> 
> file://d:/push/bzr.dev
> 
> If that works (and isn't modified), then it is probably the correct syntax.

http://offset.skew.org/wiki/URI/File_scheme
http://offset.skew.org/wiki/URI/File_scheme/Plan_of_action is probably
most interesting.

file:///c|/path is what I recall MSIE doing for file urls on windows. (:
is a reserved character).
file://d:/ is -definately- wrong, that refers to the host 'd:'.

Cheers,
Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060110/f6b4efdd/attachment.pgp 


More information about the bazaar mailing list