.hgignore regexp oddity

Kastner Masilko, Friedrich Kastner_Masilko at FESTO.AT
Thu Jan 28 14:28:22 CST 2010


From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of John W
> I've been banging my head trying to get syntax:regexp working in .hgignore.
> I have a pattern that works if run directly in python, but is not
> working when in .hgignore, so I'm not sure what transformations go on
> inside mercurial on those regexps before they get compiled...
>
> <snip>
>   #
>   # I'm trying to do "any path without a dot in it"
>   #
> $ cat .hgignore_try
> ^[^.]*$
> $ mv .hgignore_try .hgignore
> $ hg st
> ? .hgignore
> ? foo.txt
>
> <snip>
>
> Any ideas on this?

Just an idea, but have you tried a "re:" in front of the regex? AFAIK .hgignore defaults to glob syntax...

$ echo re:^[^.]*$ > .hgignore

regards,
Fritz
Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien

Firmenbuch Wien
FN 38435y

Tel: +43(1)91075-198
Fax: +43(1)91075-282
www.festo.at

Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Jede Form der Kenntnisnahme,
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir
bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls Sie nicht der Adressat dieses E-Mails sind und das
Material von Ihrem Computer zu loeschen. 

This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.



More information about the Mercurial mailing list