~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

Make sure it's not possible to commit a pack write group when any versioned file has missing compression parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1628
1628
        combined = CombinedGraphIndex([unvalidated])
1629
1629
        index = _KnitGraphIndex(combined, lambda: True)
1630
1630
        index._scan_unvalidated_index(unvalidated)
 
1631
        # This also checks that its only the compression parent that is
 
1632
        # examined, otherwise 'ghost' would also be reported as a missing
 
1633
        # parent.
1631
1634
        self.assertEqual(
1632
1635
            frozenset([('missing-parent',)]),
1633
1636
            index.get_missing_compression_parents())
1669
1672
              ([('parent-one',)], [('parent-one',)]))])
1670
1673
        combined = CombinedGraphIndex([graph_index_a, graph_index_b])
1671
1674
        index = _KnitGraphIndex(combined, lambda: True)
1672
 
 
1673
1675
        index._scan_unvalidated_index(graph_index_a)
1674
1676
        index._scan_unvalidated_index(graph_index_b)
1675
1677
        self.assertEqual(