~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: INADA Naoki
  • Date: 2011-05-17 00:45:09 UTC
  • mfrom: (5875 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5891.
  • Revision ID: songofacandy@gmail.com-20110517004509-q58negjbdjh7t6u1
merge from lp:bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1191
1191
    """
1192
1192
    # Lookup all possible text keys to determine which ones actually modified
1193
1193
    # the file.
 
1194
    graph = branch.repository.get_file_graph()
 
1195
    get_parent_map = graph.get_parent_map
1194
1196
    text_keys = [(file_id, rev_id) for rev_id, revno, depth in view_revisions]
1195
1197
    next_keys = None
1196
1198
    # Looking up keys in batches of 1000 can cut the time in half, as well as
1200
1202
    #       indexing layer. We might consider passing in hints as to the known
1201
1203
    #       access pattern (sparse/clustered, high success rate/low success
1202
1204
    #       rate). This particular access is clustered with a low success rate.
1203
 
    get_parent_map = branch.repository.texts.get_parent_map
1204
1205
    modified_text_revisions = set()
1205
1206
    chunk_size = 1000
1206
1207
    for start in xrange(0, len(text_keys), chunk_size):