Bug: ignoring files

Sanjoy Mahajan sanjoy at mrao.cam.ac.uk
Fri Aug 26 17:46:11 UTC 2005


Hmm, I think this used to work (0.6b I think) because I added a pdf
file with 'hg add file.pdf' even though \.pdf$ is in my .hgignore.

But I tried a late-model hg and it behaves as you say.  I agree, it's
a bug.  I don't know if it's easy to fix because the hgignore is wired
deeply into the treewalk code.  I tried a cheap patch that I thought
would work (making matchfn=util.always in commands.py:makewalk() if hg
add was passed a filename).  But it didn't do anything.

-Sanjoy



More information about the Mercurial mailing list