[issue951] Valid regular expression breaks .hgignore

Jiri Skrivanek mercurial-bugs at selenic.com
Tue Jan 29 04:48:12 CST 2008


New submission from Jiri Skrivanek <Jiri.Skrivanek at sun.com>:

The pattern below causes that othere patterns in .hgignore are not taken into
account:

^j2ee.kit/test/qa-functional/src/org/netbeans/test/j2ee/multiview/\.Utils\.java\.swp$
^j2ee.kit/test/qa-functional/src/org/netbeans/test/j2ee/persistence/\.PersistenceUnitTest\.java\.swp$

To reproduce:

hg init
touch a
mkdir build
touch a/a.class
cp <attached .hgignore> .hgignore
hg stat
? .hgignore
? a
? build\a.class
Remove or comment two lines above (line 243, 244)
hg stat
? .hgignore
? a

The other strange thing is that if you comment just one line, it also starts to
work.

----------
files: .hgignore
messages: 5015
nosy: jskrivanek
priority: bug
status: unread
title: Valid regular expression breaks .hgignore

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue951>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .hgignore
Type: application/octet-stream
Size: 33886 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080129/1da02152/attachment.obj 


More information about the Mercurial-devel mailing list