b.t.p.t.TestCommitWriteGroupIntegrityCheck(TestCaseWithRepositoryCHK) : class documentation

Part of bzrlib.tests.per_repository_chk.test_supported View In Hierarchy

Tests that commit_write_group prevents various kinds of invalid data from being committed to a CHK repository.
Method reopen_repo_and_resume_write_group Undocumented
Method test_missing_chk_root_for_inventory commit_write_group fails with BzrCheckError when the chk root record
Method test_missing_chk_root_for_unchanged_inventory commit_write_group fails with BzrCheckError when the chk root record
Method test_missing_chk_leaf_for_inventory commit_write_group fails with BzrCheckError when the chk root record
Method test_missing_chk_root_for_parent_inventory commit_write_group fails with BzrCheckError when the chk root record
Method make_branch_with_multiple_chk_nodes Undocumented
Method test_missing_text_record commit_write_group fails with BzrCheckError when a text is missing.

Inherited from TestCaseWithRepositoryCHK:

Method make_repository Undocumented

Inherited from TestCaseWithRepository (via TestCaseWithRepositoryCHK):

Method get_default_format Undocumented
def reopen_repo_and_resume_write_group(self, repo):
Undocumented
def test_missing_chk_root_for_inventory(self):
commit_write_group fails with BzrCheckError when the chk root record for a new inventory is missing.
def test_missing_chk_root_for_unchanged_inventory(self):
commit_write_group fails with BzrCheckError when the chk root record for a new inventory is missing, even if the parent inventory is present and has identical content (i.e. the same chk root).

A stacked repository containing only a revision with an identical inventory to its parent will still have the chk root records for those inventories.

(In principle the chk records are unnecessary in this case, but in practice bzr 2.0rc1 (at least) expects to find them.)

def test_missing_chk_leaf_for_inventory(self):
commit_write_group fails with BzrCheckError when the chk root record for a parent inventory of a new revision is missing.
def test_missing_chk_root_for_parent_inventory(self):
commit_write_group fails with BzrCheckError when the chk root record for a parent inventory of a new revision is missing.
def make_branch_with_multiple_chk_nodes(self):
Undocumented
def test_missing_text_record(self):
commit_write_group fails with BzrCheckError when a text is missing.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.