.hgignore crashes Mercurial

Guido Ostkamp hg at ostkamp.fastmail.fm
Sat Aug 18 11:43:31 CDT 2007


Hello,

for our huge project I have setup a .hgignore file of ~650 lines because 
of binaries and auto-generated files (those files either have no extension 
or I would select to many files by patterns).

Now Mercurial refuses to work, on a 'hg status' command I receive the 
following errors:

/usr/local/bin/hg status
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 55860a45bbf2)
Traceback (most recent call last):
   File "/usr/local/bin/hg", line 14, in <module>
     mercurial.dispatch.run()
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 21, in run
     sys.exit(dispatch(sys.argv[1:]))
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 30, in dispatch
     return _runcatch(u, args)
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 46, in _runcatch
     return _dispatch(ui, args)
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 349, in _dispatch
     ret = _runcommand(ui, options, cmd, d)
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 402, in _runcommand
     return checkargs()
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 358, in checkargs
     return cmdfunc()
   File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 341, in <lambda>
     d = lambda: func(ui, repo, *args, **cmdoptions)
   File "/usr/local/lib/python2.5/site-packages/mercurial/commands.py", line 2539, in status
     list_clean=all or opts['clean'])]
   File "/usr/local/lib/python2.5/site-packages/mercurial/localrepo.py", line 905, in status
     list_ignored, list_clean)
   File "/usr/local/lib/python2.5/site-packages/mercurial/dirstate.py", line 494, in status
     for src, fn, st in self.statwalk(files, match, ignored=list_ignored):
   File "/usr/local/lib/python2.5/site-packages/mercurial/dirstate.py", line 364, in statwalk
     ignore = self._ignore
   File "/usr/local/lib/python2.5/site-packages/mercurial/dirstate.py", line 60, in __getattr__
     self._ignore = ignore.ignore(self._root, files, self._ui.warn)
   File "/usr/local/lib/python2.5/site-packages/mercurial/ignore.py", line 80, in ignore
     util.matcher(root, inc=allpats, src='.hgignore'))
   File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line 407, in matcher
     return _matcher(canonroot, cwd, names, inc, exc, 'glob', src)
   File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line 530, in _matcher
     incmatch = matchfn(inckinds, '(?:/|$)')
   File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line 479, in matchfn
     return re.compile(pat).match
   File "/usr/local/lib/python2.5/re.py", line 180, in compile
     return _compile(pattern, flags)
   File "/usr/local/lib/python2.5/re.py", line 231, in _compile
     p = sre_compile.compile(pattern, flags)
   File "/usr/local/lib/python2.5/sre_compile.py", line 530, in compile
     groupindex, indexgroup
OverflowError: regular expression code size limit exceeded

Is this problem known? Is there a solution?

Regards

Guido


More information about the Mercurial mailing list