~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-13 12:51:16 UTC
  • mto: This revision was merged to the branch mainline in revision 5863.
  • Revision ID: jelmer@samba.org-20110513125116-9s9mzdq2lq73t14i
Fix two issues pointed out by John.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1192
1192
    # Lookup all possible text keys to determine which ones actually modified
1193
1193
    # the file.
1194
1194
    graph = branch.repository.get_file_graph(file_id)
 
1195
    get_parent_map = graph.get_parent_map
1195
1196
    text_keys = [(file_id, rev_id) for rev_id, revno, depth in view_revisions]
1196
1197
    next_keys = None
1197
1198
    # Looking up keys in batches of 1000 can cut the time in half, as well as
1207
1208
        next_keys = text_keys[start:start + chunk_size]
1208
1209
        # Only keep the revision_id portion of the key
1209
1210
        modified_text_revisions.update(
1210
 
            [k[1] for k in graph.get_parent_map(next_keys)])
 
1211
            [k[1] for k in get_parent_map(next_keys)])
1211
1212
    del text_keys, next_keys
1212
1213
 
1213
1214
    result = []