Help with ignore - ignore all but

Teemu Torma teemu at torma.org
Tue Feb 6 01:34:18 UTC 2007


On Tuesday 06 February 2007 01:45, Rolando Espinoza La Fuente wrote:
> Hi, i want to ignore all but some/dir, so i tried in .hgignore:
> syntax: regexp
> ^[^s][^o][^m]... etc

Basically (?!re) does not match re at the point.  It is a bit tricky to 
write this kinds of regexps.  For example, (?!foo) does match foo, 
since you can find a position after 'f' where it does not match since 
there is no foo after 'f'.  

Teemu



More information about the Mercurial mailing list