hgignore and extensions

Giuseppe Bilotta bilotta78 at hotpop.com
Sun Jul 10 23:45:44 CDT 2005


Hello, I just found a weird thing while trying to set up a repository.
Basically, I can't make .hgignore work with extensions. I have a bunch
of files named like

filename.ext.<date>

where date is in the form yyyymmdd

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).

Likewise, patterns like

.*\.swp

or

\.hgignore.*

don't work. Ideas?

-- 
Giuseppe "Oblomov" Bilotta

"They that can give up essential liberty to obtain
a little temporary safety deserve neither liberty
nor safety." Benjamin Franklin



More information about the Mercurial mailing list