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

  • Committer: Martin
  • Date: 2017-06-04 18:09:30 UTC
  • mto: This revision was merged to the branch mainline in revision 6653.
  • Revision ID: gzlist@googlemail.com-20170604180930-zpcenvzu13lilaax
Apply 2to3 xrange fix and fix up with sixish range

Show diffs side-by-side

added added

removed removed

Lines of Context:
1570
1570
        # handled the interesting ones
1571
1571
        for prefix, ref in old_chks_to_enqueue:
1572
1572
            not_interesting = True
1573
 
            for i in xrange(len(prefix), 0, -1):
 
1573
            for i in range(len(prefix), 0, -1):
1574
1574
                if prefix[:i] in new_prefixes:
1575
1575
                    not_interesting = False
1576
1576
                    break
1630
1630
        # 'ab', then we also need to include 'a'.) So expand the
1631
1631
        # new_prefixes to include all shorter prefixes
1632
1632
        for prefix in list(new_prefixes):
1633
 
            new_prefixes.update([prefix[:i] for i in xrange(1, len(prefix))])
 
1633
            new_prefixes.update([prefix[:i] for i in range(1, len(prefix))])
1634
1634
        self._enqueue_old(new_prefixes, old_chks_to_enqueue)
1635
1635
 
1636
1636
    def _flush_new_queue(self):