/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/plugins/weave_fmt/bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-05 23:35:09 UTC
  • mfrom: (6658 work)
  • mto: (6653.3.3 bzrwt)
  • mto: This revision was merged to the branch mainline in revision 6667.
  • Revision ID: jelmer@jelmer.uk-20170605233509-30wo916k6meuggqf
MergeĀ lp:brz

Show diffs side-by-side

added added

removed removed

Lines of Context:
435
435
            self.text_weaves[file_id] = w
436
436
        text_changed = False
437
437
        parent_candiate_entries = ie.parent_candidates(parent_invs)
438
 
        heads = graph.Graph(self).heads(parent_candiate_entries.keys())
 
438
        heads = graph.Graph(self).heads(parent_candiate_entries)
439
439
        # XXX: Note that this is unordered - and this is tolerable because
440
440
        # the previous code was also unordered.
441
441
        previous_entries = dict((head, parent_candiate_entries[head]) for head
457
457
        # save against.
458
458
        #ie.snapshot(rev, PATH, previous_revisions, REVISION_TREE, InMemoryWeaveStore(self.text_weaves))
459
459
        if len(previous_revisions) == 1:
460
 
            previous_ie = previous_revisions.values()[0]
 
460
            previous_ie = next(iter(previous_revisions.values()))
461
461
            if ie._unchanged(previous_ie):
462
462
                ie.revision = previous_ie.revision
463
463
                return
479
479
        The order must be such that an revision is imported after all
480
480
        its (present) parents.
481
481
        """
482
 
        todo = set(self.revisions.keys())
 
482
        todo = set(self.revisions)
483
483
        done = self.absent_revisions.copy()
484
484
        order = []
485
485
        while todo: