testbzr fails on windows with bad line endings.

John A Meinel john at arbash-meinel.com
Thu May 26 05:18:58 BST 2005


Martin Pool wrote:

>On 25 May 2005, Michael Ellerman <michael+bazaar at ellerman.id.au> wrote:
>
>
>>On Wed, 25 May 2005 15:50, John A Meinel wrote:
>>
>>
>>>Since windows supports it, I think we should use '/' as the path separator.
>>>It just unifies platforms.
>>>
>>>
>
>I have heard different opinions on whether or not Windows "supports"
>'/' as a path separator.  It seems like there is some support, but
>many programs don't cope well, and it troubles some users.  So on the
>whole it's probably better to use os.path.sep externally.
>
>
Well, it won't bother me too much. I'll probably run the cygwin version
anyway, where os.sep = '/'.

>In internal-use files we should try to use /, so that they can be
>moved between unix and windows.
>
>
Fully agree.

>For things like .bzrignore that are edited by the user we probably
>want to accept either separator on all platforms.
>
>
Then how do you escape the '*' character? Since it is valid in filenames.

Accepting the '\' as a valid directory separator in .bzrignore seems
like an easy way to have problems since you need something as an escape
character. You can't just double up the character, since you want to use
'**' to mean include the directory separator as well.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050525/15c160b6/attachment.pgp 


More information about the bazaar mailing list