/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-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
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
 
 
21
19
from .lazy_import import lazy_import
22
20
lazy_import(globals(), """
23
21
 
33
31
    osutils,
34
32
    ui,
35
33
    )
36
 
from .sixish import (
37
 
    range,
38
 
    viewitems,
39
 
    )
40
34
 
41
35
 
42
36
class Annotator(object):
95
89
                    vf_keys_needed.add(key)
96
90
            needed_keys = set()
97
91
            next_parent_map.update(self._vf.get_parent_map(parent_lookup))
98
 
            for key, parent_keys in viewitems(next_parent_map):
 
92
            for key, parent_keys in next_parent_map.items():
99
93
                if parent_keys is None:  # No graph versionedfile
100
94
                    parent_keys = ()
101
95
                    next_parent_map[key] = ()