bzr-0.1-rc1: selftest bug (windows specific): problem with os.sep

Alexander Belchenko bialix at ukr.net
Tue Oct 25 18:59:47 BST 2005


Robert Collins wrote:
> On Sun, 2005-10-09 at 23:35 +0300, Alexander Belchenko wrote:
>>Because Windows use '\\' as os.sep may be this filter won't work. In 
>>manual mode command:
>>
>>$ bzr ci dir/file1
> 
> So I think we need to really set a policy for '/' and os.sep.
> 
> What I'd like us to use is:
> 'os.sep' in user output
> '\\' or '/' in user input is translated to '/'.
> '/' is used everywhere within the code base.
> 
> 
> What do you think?

I think it will be good.

I think for transparent translating os.sep to and from '/' there is need 
to create some form of helper class/functions for handling file paths in 
universal way. So in this case this class can be improved in future if 
needed.

Alexander




More information about the bazaar mailing list