David Roberts пишет:
> Public bug reported:
>
> .bzrignore file appears not to be honoured.
>
> To demonstrate -
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> H:\>mkdir bzr
>
> H:\>cd bzr
>
> H:\bzr>bzr --version
> Bazaar (bzr) 1.0.0.candidate.1
> Python interpreter: C:\Added Program Files\Bazaar\python25.dll 2.5.1.final.0
> Python standard library: C:\Added Program Files\Bazaar\lib\library.zip
> bzrlib: C:\Added Program Files\Bazaar\lib\library.zip\bzrlib
> Bazaar configuration: C:\Documents and Settings\David\Application Data\bazaar\2.0
> Bazaar log file: C:\Documents and Settings\David\My Documents\.bzr.log
>
> Copyright 2005, 2006, 2007 Canonical Ltd.
> http://bazaar-vcs.org/
>
> bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
> you may use, modify and redistribute it under the terms of the GNU
> General Public License version 2 or later.
>
>
> H:\bzr>bzr init
>
> 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. I even not sure we
should fix this, because actually
David Roberts пишет: python25. dll 2.5.1.final.0 lib\library. zip lib\library. zip\bzrlib David\Applicati on Data\bazaar\2.0 bazaar- vcs.org/
> Public bug reported:
>
> .bzrignore file appears not to be honoured.
>
> To demonstrate -
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> H:\>mkdir bzr
>
> H:\>cd bzr
>
> H:\bzr>bzr --version
> Bazaar (bzr) 1.0.0.candidate.1
> Python interpreter: C:\Added Program Files\Bazaar\
> Python standard library: C:\Added Program Files\Bazaar\
> bzrlib: C:\Added Program Files\Bazaar\
> Bazaar configuration: C:\Documents and Settings\
> Bazaar log file: C:\Documents and Settings\David\My Documents\.bzr.log
>
> Copyright 2005, 2006, 2007 Canonical Ltd.
> http://
>
> bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
> you may use, modify and redistribute it under the terms of the GNU
> General Public License version 2 or later.
>
>
> H:\bzr>bzr init
>
> 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. I even not sure we
should fix this, because actually
bzr ignore *.txt
do the right thing.