/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: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-06-05 21:50:19 UTC
  • mfrom: (6656.1.3 dict_viewing)
  • Revision ID: breezy.the.bot@gmail.com-20170605215019-uw7s07tx11p194kh
Apply 2to3 dict fixer and clean up with sixish view methods

Merged from https://code.launchpad.net/~gz/brz/dict_viewing/+merge/325108

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: