As a sanity check, are you sure you are using glob matching rather than regex matching? Perl/Python regex matching is default.
If you were using regex matching the leading * is a syntax error. The .* would match any number of any characters (including none) and the # would match a hash. Depending on how the syntax error is handled, your filter would match any file containing a # anywhere. For a regex \.*# would match any number of full stop characters (including none) followed by # - effectively the same as the non-workaround version. -- Peter Jaquiery -----Original Message----- From: Mads Kiilerich [mailto:[email protected]] Sent: Tuesday, 12 July 2011 9:27 p.m. To: Laurent Dufrechou Cc: [email protected] Subject: Re: [thg] [usability] .hgignore don't work when "." in glob formula On 07/12/2011 09:32 AM, Laurent Dufrechou wrote: > Hello, > > I've just seen another little < bug >. > > In ignore panel. > > I got some files I want to filter that should match this filter: *.*# > > (toto.s1#, titi.s2#) > > Sadly the "." is making the glob failing. In what way does it fail? > Perhaps this is normal for a glob but from user point of view it seems > buggy. > > Workaround: > > Filter : *\.*# works. AFAICS there is no problem with "." and your workaround doesn't make any difference in 2.1.1. thg do however not escape "#" correctly when it is inserted in .hgignore. In your case you should have "*.*\#" in your .hgignore. /Mads ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

