/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/fastimport/revision_store.py

  • Committer: Martin
  • Date: 2017-05-25 01:35:55 UTC
  • mto: This revision was merged to the branch mainline in revision 6637.
  • Revision ID: gzlist@googlemail.com-20170525013555-lepzczdnzb9r272j
Apply 2to3 next fixer and make compatible

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
            path_entries = inv.iter_entries()
437
437
            # Backwards compatibility hack: skip the root id.
438
438
            if not self.repo.supports_rich_root():
439
 
                path, root = path_entries.next()
 
439
                path, root = next(path_entries)
440
440
                if root.revision != revision_id:
441
441
                    raise errors.IncompatibleRevision(repr(self.repo))
442
442
            entries = iter([ie for path, ie in path_entries])
602
602
            self.repo.texts.add_lines(text_key, text_parents, lines)
603
603
 
604
604
    def get_file_lines(self, revision_id, file_id):
605
 
        record = self.repo.texts.get_record_stream([(file_id, revision_id)],
606
 
            'unordered', True).next()
 
605
        record = next(self.repo.texts.get_record_stream([(file_id, revision_id)],
 
606
            'unordered', True))
607
607
        if record.storage_kind == 'absent':
608
608
            raise errors.RevisionNotPresent(record.key, self.repo)
609
609
        return osutils.split_lines(record.get_bytes_as('fulltext'))