/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/tests/test_versionedfile.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:
88
88
        self.assertEqual(sorted([('one',), ('two',), ('three',)]),
89
89
                         sorted(gen.needed_keys))
90
90
        stream = vf.get_record_stream(gen.needed_keys, 'topological', True)
91
 
        record = stream.next()
 
91
        record = next(stream)
92
92
        self.assertEqual(('one',), record.key)
93
93
        # one is not needed in the output, but it is needed by children. As
94
94
        # such, it should end up in the various caches
99
99
        self.assertEqual([], gen.diffs.keys())
100
100
        # Next we get 'two', which is something we output, but also needed for
101
101
        # three
102
 
        record = stream.next()
 
102
        record = next(stream)
103
103
        self.assertEqual(('two',), record.key)
104
104
        gen._process_one_record(record.key, record.get_bytes_as('chunked'))
105
105
        # Both are now cached, and the diff for two has been extracted, and
113
113
                         gen.parent_map)
114
114
        # Finally 'three', which allows us to remove all parents from the
115
115
        # caches
116
 
        record = stream.next()
 
116
        record = next(stream)
117
117
        self.assertEqual(('three',), record.key)
118
118
        gen._process_one_record(record.key, record.get_bytes_as('chunked'))
119
119
        # Both are now cached, and the diff for two has been extracted, and