/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/_annotator_py.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Functionality for doing annotations in the 'optimal' way"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from .lazy_import import lazy_import
20
22
lazy_import(globals(), """
21
23
 
31
33
    osutils,
32
34
    ui,
33
35
    )
 
36
from .sixish import (
 
37
    range,
 
38
    viewitems,
 
39
    )
34
40
 
35
41
 
36
42
class Annotator(object):
89
95
                    vf_keys_needed.add(key)
90
96
            needed_keys = set()
91
97
            next_parent_map.update(self._vf.get_parent_map(parent_lookup))
92
 
            for key, parent_keys in next_parent_map.items():
 
98
            for key, parent_keys in viewitems(next_parent_map):
93
99
                if parent_keys is None:  # No graph versionedfile
94
100
                    parent_keys = ()
95
101
                    next_parent_map[key] = ()