~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-30 16:48:11 UTC
  • mfrom: (5967.9.6 regexps)
  • Revision ID: pqm@pqm.ubuntu.com-20110630164811-kpfgfqyzdzxnn8q6
(mbp) use explicit lazy regexps when appropriate (bug 608054) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
""")
80
80
 
81
81
from bzrlib import (
 
82
    lazy_regex,
82
83
    registry,
83
84
    )
84
85
from bzrlib.osutils import (
863
864
    """
864
865
    if search is None:
865
866
        return log_rev_iterator
866
 
    searchRE = re.compile(search, re.IGNORECASE)
 
867
    searchRE = lazy_regex.lazy_compile(search, re.IGNORECASE)
867
868
    return _filter_message_re(searchRE, log_rev_iterator)
868
869
 
869
870