[MERGE/RFC] LocalTransport.abspath() should return a drive letter if the transport has one

Robert Collins robertc at robertcollins.net
Tue Sep 9 01:12:28 BST 2008


On Sat, 2008-09-06 at 17:47 +1000, Mark Hammond wrote:
> 
> I've attached a bundle to address this in abspath - with my patch
> applied:
> 
> >>> from bzrlib.transport.local import LocalTransport
> >>> t=LocalTransport("file:///")
> >>> t.abspath("/")
> 'file:///'
> # Same as above
> >>> t2=LocalTransport("file:///c:/foo")
> >>> t2.abspath("/")
> 'file:///C:/'
> >>>
> # different than above.

This looks sensible.

bb:resubmit

We've had trouble here before. Please add a test that:
 - sets sys.platform to something windows
 - tests the c:/foo -> abspath("/") case

-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/20080909/48f4cb6f/attachment.pgp 


More information about the bazaar mailing list