/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 breezy/annotate.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-06-29 23:46:33 UTC
  • mfrom: (6997.6.10 annotate)
  • Revision ID: breezy.the.bot@gmail.com-20180629234633-viw3mz29w1eygx1y
Add HPSS call for Tree.annotate_iter.

Merged from https://code.launchpad.net/~jelmer/brz/hpss-annotate/+merge/348438

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    :param branch: A locked branch to query for revision details.
163
163
    """
164
164
    repository = branch.repository
 
165
    revision_ids = set(o for o, t in annotations)
165
166
    if current_rev is not None:
166
167
        # This can probably become a function on MutableTree, get_revno_map
167
168
        # there, or something.
185
186
            for seq_num, rev_id, depth, revno, end_of_merge in
186
187
                merge_sorted_revisions)
187
188
    else:
 
189
        # TODO(jelmer): Only look up the revision ids that we need (i.e. those
 
190
        # in revision_ids). Possibly add a HPSS call that can look those up
 
191
        # in bulk over HPSS.
188
192
        revision_id_to_revno = branch.get_revision_id_to_revno_map()
189
193
    last_origin = None
190
 
    revision_ids = set(o for o, t in annotations)
191
194
    revisions = {}
192
195
    if CURRENT_REVISION in revision_ids:
193
196
        revision_id_to_revno[CURRENT_REVISION] = (