Comment 4 for bug 300062

Revision history for this message
Parth Malwankar (parthm) wrote :

This is present on trunk (towards 2.2b4).

[aaa]% bzr ignore "RE:*.cpp"
bzr: ERROR: sre_constants.error: nothing to repeat

Traceback (most recent call last):
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1109, in run_bzr
    ret = run(*run_argv)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/builtins.py", line 2723, in run
    if ignored.match(filename):
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/globbing.py", line 213, in match
    match = regex.match(filename)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/lazy_regex.py", line 69, in __getattr__
    self._compile_and_collapse()
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/lazy_regex.py", line 55, in _compile_and_collapse
    **self._regex_kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/lazy_regex.py", line 61, in _real_re_compile
    return _real_re_compile(*args, **kwargs)
  File "/usr/lib/python2.6/re.py", line 190, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.6/re.py", line 245, in _compile
    raise error, v # invalid expression
error: nothing to repeat

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-05-30T03:11.crash
if a bug-reporting window does not automatically appear.
[aaa]%