/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2009-03-24 01:43:50 UTC
  • mto: This revision was merged to the branch mainline in revision 4192.
  • Revision ID: mbp@sourcefrog.net-20090324014350-z4qg62nv8ly1sox1
SeparateĀ outĀ re_compile_checked

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
from bzrlib.osutils import (
83
83
    format_date,
84
84
    get_terminal_encoding,
 
85
    re_compile_checked,
85
86
    terminal_width,
86
87
    )
87
88
 
587
588
    """
588
589
    if search is None:
589
590
        return log_rev_iterator
590
 
    # Compile the search now to get early errors.
591
 
    try:
592
 
        searchRE = re.compile(search, re.IGNORECASE)
593
 
        searchRE.search("")
594
 
    except:
595
 
        raise errors.BzrCommandError('Invalid regular expression: %r'
596
 
            % (search,))
 
591
    searchRE = re_compile_checked(search, re.IGNORECASE,
 
592
            'log message filter')
597
593
    return _filter_message_re(searchRE, log_rev_iterator)
598
594
 
599
595