Comment 2 for bug 300062

Revision history for this message
nothing1212 (davidtgaulin) wrote : Re: [Bug 300062] Re: "bzr ignore RE:*.cpp" just crashed in an empty repo.

Thank you for the explanation... can I correct the code myself?
If so, how do I get commit access to the code?

On Wed, Nov 19, 2008 at 15:45, John A Meinel <email address hidden> wrote:

> *.cpp
>
> is an invalid regex, I would guess you actually just wanted a glob,
> which would be "*.cpp".
>
> If you wanted a regex, then you would need "RE:.*\.cpp"
>
> That said, bzr could be a bit better about giving you a single line
> "Invalid regex: '*.cpp'" or something of the sort.
>
> ** Changed in: bzr
> Importance: Undecided => Low
> Status: New => Triaged
>
> --
> "bzr ignore RE:*.cpp" just crashed in an empty repo.
> https://bugs.launchpad.net/bugs/300062
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Triaged
>
> Bug description:
> C:\temp\bt>bzr init
> Standalone tree (format: pack-0.92)
> Location:
> branch root: .
>
> C:\temp\bt>bzr ignore RE:*.cpp
> bzr: ERROR: sre_constants.error: nothing to repeat
>
> Traceback (most recent call last):
> File "bzrlib\commands.pyo", line 893, in run_bzr_catch_errors
> File "bzrlib\commands.pyo", line 839, in run_bzr
> File "bzrlib\commands.pyo", line 539, in run_argv_aliases
> File "bzrlib\builtins.pyo", line 2084, in run
> File "bzrlib\globbing.pyo", line 213, in match
> File "bzrlib\lazy_regex.pyo", line 69, in __getattr__
> File "bzrlib\lazy_regex.pyo", line 55, in _compile_and_collapse
> File "bzrlib\lazy_regex.pyo", line 61, in _real_re_compile
> File "re.pyo", line 188, in compile
> File "re.pyo", line 241, in _compile
> error: nothing to repeat
>
> bzr 1.9 on python 2.5.2 (win32)
> arguments: ['bzr', 'ignore', 'RE:*.cpp']
> encoding: 'cp1252', fsenc: 'mbcs', lang: None
> plugins:
> bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.9.1]
> launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
> qbzr C:\Program Files\Bazaar\plugins\qbzr [0.9.5]
> svn C:\Program Files\Bazaar\plugins\svn [0.4.14]
> *** Bazaar has encountered an internal error.
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
> including this traceback, and a description of what you
> were doing when the error occurred.
>