~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

Add source index to the index iteration API to allow mapping back to the origin of retrieved data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1017
1017
        self.assertEqualDiff(''.join(k.get_lines('text-1a')), TEXT_1A)
1018
1018
        # check the index had the right data added.
1019
1019
        self.assertEqual(set([
1020
 
            (('text-1', ), ' 0 127', ((), ())),
1021
 
            (('text-1a', ), ' 127 140', ((('text-1', ),), (('text-1', ),))),
 
1020
            (index, ('text-1', ), ' 0 127', ((), ())),
 
1021
            (index, ('text-1a', ), ' 127 140', ((('text-1', ),), (('text-1', ),))),
1022
1022
            ]), set(index.iter_all_entries()))
1023
1023
        # we should not have a .kndx file
1024
1024
        self.assertFalse(get_transport('.').has('test.kndx'))