hgignore and extensions

Giuseppe Bilotta bilotta78 at hotpop.com
Sun Jul 10 23:57:59 CDT 2005


On Mon, 11 Jul 2005 06:45:44 +0200, Giuseppe Bilotta wrote:

> So I tried the following regexp in .hgignore:
> 
> .*\.[0-9]{8}
> 
> and the files were not ignored. After neverending tries, I went for
> 
> .*[0-9]{8}
> 
> and it worked (btw, using \d instead of [0-9] doesn't work).

Interestingly, .*[.][0-9]{8} works too, so it's \. that isn't properly
recognized. OTOH, the pattern

Makefile(\..*)?

ignores Makefile, Makefile.Debug, Makefile.Release

I'm totally flabbergasted.

FWIW, hg version 0cfc5966b2c2

-- 
Giuseppe "Oblomov" Bilotta

"I weep for our generation" -- Charlie Brown



More information about the Mercurial mailing list