.hgignore, ignore two levels deep jar files
Robert Bauck Hamar
r.b.hamar at usit.uio.no
Thu Aug 5 15:59:38 UTC 2010
*rupert.thurner:
>i tried to ignore all jar, war, and ear files two directory levels
>deep. when using glob, it ignores also three levels deep,
Yes, globs are not rooted, so this is expected.
>and when
>trying regex it seems to also ignore everything. how could a
>correct .hgignore file look like? a/b/c names are not known in
>advance, just the level and ending.
^([^/]+/){2}[^/]+\.[ejw]ar$
>echo [^/]/[^/]/[^/]\.[ejw]ar > .hgignore
Remember, [^/] matches only a single character. Works with a, b, and c,
but probably not what you want.
--
Robert Bauck Hamar
USIT/SAPP/GT - Cerebrum
http://www.uio.no/sok?person=roberth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20100805/f9f38a32/attachment.asc>
More information about the Mercurial
mailing list