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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-12 01:41:38 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181112014138-3b0zyx91cu3wdq3k
More PEP8 fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    ui,
33
33
    )
34
34
""")
 
35
from .i18n import gettext
35
36
from .sixish import (
36
37
    BytesIO,
37
38
    range,
440
441
    def select_snapshots(self, vf):
441
442
        """Determine which versions to add as snapshots"""
442
443
        build_ancestors = {}
443
 
        descendants = {}
444
444
        snapshots = set()
445
445
        for version_id in topo_iter(vf):
446
446
            potential_build_ancestors = set(vf.get_parents(version_id))
467
467
    def get_size_ranking(self):
468
468
        """Get versions ranked by size"""
469
469
        versions = []
470
 
        new_snapshots = set()
471
470
        for version_id in self.versions():
472
471
            if version_id in self._snapshots:
473
472
                continue