/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/bzr/check.py

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  indicating that the revision was found/not found.
48
48
"""
49
49
 
50
 
from __future__ import absolute_import
51
 
 
52
50
from .. import (
53
51
    ui,
54
52
    )
55
53
from ..branch import Branch
56
54
from ..check import Check
57
55
from ..revision import NULL_REVISION
58
 
from ..sixish import (
59
 
    viewitems,
60
 
    )
61
56
from ..trace import note
62
57
from ..workingtree import WorkingTree
63
58
from ..i18n import gettext
119
114
                # landing].
120
115
                distances = set()
121
116
                existences = set()
122
 
                for ref, wantlist in viewitems(callback_refs):
 
117
                for ref, wantlist in callback_refs.items():
123
118
                    wanting_items.update(wantlist)
124
119
                    kind, value = ref
125
120
                    if kind == 'trees':
132
127
                        raise AssertionError(
133
128
                            'unknown ref kind for ref %s' % ref)
134
129
                node_distances = repo.get_graph().find_lefthand_distances(distances)
135
 
                for key, distance in viewitems(node_distances):
 
130
                for key, distance in node_distances.items():
136
131
                    refs[('lefthand-distance', key)] = distance
137
132
                    if key in existences and distance > 0:
138
133
                        refs[('revision-existence', key)] = True
218
213
            note(gettext('%6d revisions missing parents in ancestry'),
219
214
                 len(self.missing_parent_links))
220
215
            if verbose:
221
 
                for link, linkers in viewitems(self.missing_parent_links):
 
216
                for link, linkers in self.missing_parent_links.items():
222
217
                    note(gettext('      %s should be in the ancestry for:'),
223
218
                         link.decode('utf-8'))
224
219
                    for linker in linkers:
314
309
        wrongs, unused_versions = weave_checker.check_file_version_parents(
315
310
            self.repository.texts)
316
311
        self.checked_weaves = weave_checker.file_ids
317
 
        for text_key, (stored_parents, correct_parents) in viewitems(wrongs):
 
312
        for text_key, (stored_parents, correct_parents) in wrongs.items():
318
313
            # XXX not ready for id join/split operations.
319
314
            weave_id = text_key[0]
320
315
            revision_id = text_key[-1]