~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

Make the parent_id_basename index be updated during CHKInventory.apply_delta.

Show diffs side-by-side

added added

removed removed

Lines of Context:
698
698
        tree.lock_read()
699
699
        self.addCleanup(tree.unlock)
700
700
        inv = tree.branch.repository.get_inventory(revid)
701
 
        self.assertNotEqual(None, inv.parent_id_to_basename)
702
 
        inv.parent_id_to_basename._ensure_root()
 
701
        self.assertNotEqual(None, inv.parent_id_basename_to_file_id)
 
702
        inv.parent_id_basename_to_file_id._ensure_root()
703
703
        inv.id_to_entry._ensure_root()
704
704
        self.assertEqual(4096, inv.id_to_entry._root_node.maximum_size)
705
705
        self.assertEqual(4096,
706
 
            inv.parent_id_to_basename._root_node.maximum_size)
 
706
            inv.parent_id_basename_to_file_id._root_node.maximum_size)
707
707
 
708
708
 
709
709
class TestDevelopment3FindRevisionOutsideSet(TestCaseWithTransport):