Comment 3 for bug 174607

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Re: [Bug 174607] .bzrignore is not honoured. [Bazaar (bzr) 1.0.0.candidate.1 - win32]

Alexander Belchenko wrote:

>> H:\bzr>echo *.txt > .bzrignore
>
> ^-- The problem is here.
> win32 echo command wrote to .bzrignore exact string that ends at '>'
> sign, i.e. actually "*.txt ". So bzr try to match against file extension
> "txt ". Because on windows you cannot create files with trailing spaces
> this behavior is incorrect on windows. But pattern itself is probably
> correct for linux.
>
> But if you actually invoke your command as:
>
> echo *.txt> .bzrignore
>
> then all works fine.
>
> I'm not sure how to fix this in cross-platform way.

Sounds like trailing spaces in .bzrignore file should be trimmed. I
can't think of a good reason for not doing that.

Ian C.