.hgignore crashes Mercurial

Jens Alfke jens at mooseyard.com
Sat Aug 18 12:58:21 CDT 2007


On 18 Aug '07, at 9:43 AM, Guido Ostkamp wrote:

> OverflowError: regular expression code size limit exceeded

I think you've hit a size limit in Python's regular expression  
compiler. Sounds like Mercurial creates a single regexp containing all  
of the patterns in the .hgignore file, and it just got too large.

This could be fixed in Mercurial by having it break the test into  
multiple regexps when necessary; but otherwise I think you'll just  
have to reduce the size of the ignore-file. Perhaps there's some  
commonality in filenames you could exploit — maybe they're all-caps,  
or are the only files that don't have a "." in the name, or something  
like that?

[Disclaimer: I know nothing of the internals of Mercurial; this is  
just guesswork.]

--Jens


More information about the Mercurial mailing list