What pattern to exclude *any* directory called "bin"

Christian Ebert blacktrash at gmx.net
Fri Oct 3 08:46:53 CDT 2008


* Bill Barry on Friday, October 03, 2008 at 07:33:31 -0600
> I am ignoring the same files with this .hgignore file:
> --
> syntax: glob
> bin
> obj
> build
> _UpgradeReport_Files
> *.msi
> 
> syntax:regexp
> [Uu][Pp][Gg][Rr][Aa][Dd][Ee][Ll][Oo][Gg]\.[Xx][Mm][Ll]
> 
> --
> The regex is done because I need to ignore case (sometimes it comes out  
> in a different case on a couple machines, I haven't figured out why).  
> There is probably a better way to ignore case (some sort of case ignore  
> group, in perl it would be (?i:upgradelog\.xml) but I don't know if that  
> works in python and I haven't bothered to check).

(?i)upgradelog\.xml

should do it.

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_

Welturaufführung -->> http://www.blacktrash.org/underdogma/ccc.html
World première   -->> http://www.blacktrash.org/underdogma/ccc-en.html


More information about the Mercurial mailing list