please, use bzrlib.urlutils.local_path_from_url

Alexander Belchenko bialix at ukr.net
Tue Feb 9 23:17:00 GMT 2010


Gordon Tyler пишет:
> On 2/9/2010 6:00 PM, Alexander Belchenko wrote:
>> URL: file:///C:/foo/bar
>>
>> path after hack: /C:/foo/bar
>>
>> should be: C:/foo/bar
> 
> If you really want to get picky, it should be:
> 
> C:\foo\bar
> 
> ;)

Gordon,

At first, I'm not picky, I have fixed several places in bzr-explorer where Ian has used the hack 
I've described in my mail and this can be easily avoided by using urlutils API. I'm not happy to fix 
it again and again.

At second, there is deliberate decision to use forward slashes on windows in bzrlib, and this 
decision was made in 2006.

My mail was not joke, and there is 1AM and it's time for sleep not for jokes.



More information about the bazaar mailing list