~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

MergeĀ upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
18
18
 
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
 
    searchRE = re.compile(search, re.IGNORECASE)
 
591
    searchRE = re_compile_checked(search, re.IGNORECASE,
 
592
            'log message filter')
592
593
    return _filter_message_re(searchRE, log_rev_iterator)
593
594
 
594
595
 
954
955
    # Lookup all possible text keys to determine which ones actually modified
955
956
    # the file.
956
957
    text_keys = [(file_id, rev_id) for rev_id, revno, depth in view_revisions]
 
958
    next_keys = None
957
959
    # Looking up keys in batches of 1000 can cut the time in half, as well as
958
960
    # memory consumption. GraphIndex *does* like to look for a few keys in
959
961
    # parallel, it just doesn't like looking for *lots* of keys in parallel.