@SkipUnless(svntest.main.is_fs_type_fsfs)
def verify_incremental_fsfs(sbox):
    "svnadmin verify detects corruption dump can't"
    if ((svntest.main.options.fsfs_version is not None) and (svntest.main.options.fsfs_version not in [4, 6])):
        raise svntest.Skip('Unsupported prepackaged repository version')
    sbox.build(create_wc=False, minor_version=min(svntest.main.options.server_minor_version, 8))
    repo_url = sbox.repo_url
    E_url = (sbox.repo_url + '/A/B/E')
    svntest.actions.run_and_verify_svn(None, [], 'mkdir', '-m', 'log_msg', (E_url + '/bravo'))
    r2 = fsfs_file(sbox.repo_dir, 'revs', '2')
    if r2.endswith('pack'):
        raise svntest.Skip("Test doesn't handle packed revisions")
    fp = open(r2, 'wb')
    fp.write(b'id: 0-2.0.r2/0\ntype: dir\ncount: 0\ncpath: /A/B/E/bravo\ncopyroot: 0 /\n\nPLAIN\nK 5\nalpha\nV 17\nfile 3-1.0.r1/719\nK 4\nbeta\nV 17\nfile 4-1.0.r1/840\nK 5\nbravo\nV 14\ndir 0-2.0.r2/0\nEND\nENDREP\nid: 2-1.0.r2/181\ntype: dir\npred: 2-1.0.r1/1043\ncount: 1\ntext: 2 69 99 99 f63001f7fddd1842d8891474d0982111\ncpath: /A/B/E\ncopyroot: 0 /\n\nPLAIN\nK 1\nE\nV 16\ndir 2-1.0.r2/181\nK 1\nF\nV 17\ndir 5-1.0.r1/1160\nK 6\nlambda\nV 17\nfile 6-1.0.r1/597\nEND\nENDREP\nid: 1-1.0.r2/424\ntype: dir\npred: 1-1.0.r1/1335\ncount: 1\ntext: 2 316 95 95 bccb66379b4f825dac12b50d80211bae\ncpath: /A/B\ncopyroot: 0 /\n\nPLAIN\nK 1\nB\nV 16\ndir 1-1.0.r2/424\nK 1\nC\nV 17\ndir 7-1.0.r1/1569\nK 1\nD\nV 17\ndir 8-1.0.r1/3061\nK 2\nmu\nV 18\nfile i-1.0.r1/1451\nEND\nENDREP\nid: 0-1.0.r2/692\ntype: dir\npred: 0-1.0.r1/3312\ncount: 1\ntext: 2 558 121 121 c9b5a2d26473a4e28088673dda9df804\ncpath: /A\ncopyroot: 0 /\n\nPLAIN\nK 1\nA\nV 16\ndir 0-1.0.r2/692\nK 4\niota\nV 18\nfile j-1.0.r1/3428\nEND\nENDREP\nid: 0.0.r2/904\ntype: dir\npred: 0.0.r1/3624\ncount: 2\ntext: 2 826 65 65 e44e4151d0d124533338619f082c8c9a\ncpath: /\ncopyroot: 0 /\n\n_0.0.t1-1 add false false /A/B/E/bravo\n\n\n904 1031\n')
    fp.close()
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', '-r2', sbox.repo_dir)
    svntest.verify.verify_outputs(message=None, actual_stdout=output, actual_stderr=errput, expected_stdout=None, expected_stderr=".*Found malformed header '[^']*' in revision file|.*Missing id field in node-rev.*")
svnadmin verify detects corruption dump can't
@SkipUnless(svntest.main.is_fs_type_fsfs)
def verify_incremental_fsfs(sbox):
    
    if ((svntest.main.options.fsfs_version is not None) and (svntest.main.options.fsfs_version not in [4, 6])):
        raise svntest.Skip('Unsupported prepackaged repository version')
    sbox.build(create_wc=False, minor_version=min(svntest.main.options.server_minor_version, 8))
    repo_url = sbox.repo_url
    E_url = (sbox.repo_url + '/A/B/E')
    svntest.actions.run_and_verify_svn(None, [], 'mkdir', '-m', 'log_msg', (E_url + '/bravo'))
    r2 = fsfs_file(sbox.repo_dir, 'revs', '2')
    if r2.endswith('pack'):
        raise svntest.Skip("Test doesn't handle packed revisions")
    fp = open(r2, 'wb')
    fp.write(b'id: 0-2.0.r2/0\ntype: dir\ncount: 0\ncpath: /A/B/E/bravo\ncopyroot: 0 /\n\nPLAIN\nK 5\nalpha\nV 17\nfile 3-1.0.r1/719\nK 4\nbeta\nV 17\nfile 4-1.0.r1/840\nK 5\nbravo\nV 14\ndir 0-2.0.r2/0\nEND\nENDREP\nid: 2-1.0.r2/181\ntype: dir\npred: 2-1.0.r1/1043\ncount: 1\ntext: 2 69 99 99 f63001f7fddd1842d8891474d0982111\ncpath: /A/B/E\ncopyroot: 0 /\n\nPLAIN\nK 1\nE\nV 16\ndir 2-1.0.r2/181\nK 1\nF\nV 17\ndir 5-1.0.r1/1160\nK 6\nlambda\nV 17\nfile 6-1.0.r1/597\nEND\nENDREP\nid: 1-1.0.r2/424\ntype: dir\npred: 1-1.0.r1/1335\ncount: 1\ntext: 2 316 95 95 bccb66379b4f825dac12b50d80211bae\ncpath: /A/B\ncopyroot: 0 /\n\nPLAIN\nK 1\nB\nV 16\ndir 1-1.0.r2/424\nK 1\nC\nV 17\ndir 7-1.0.r1/1569\nK 1\nD\nV 17\ndir 8-1.0.r1/3061\nK 2\nmu\nV 18\nfile i-1.0.r1/1451\nEND\nENDREP\nid: 0-1.0.r2/692\ntype: dir\npred: 0-1.0.r1/3312\ncount: 1\ntext: 2 558 121 121 c9b5a2d26473a4e28088673dda9df804\ncpath: /A\ncopyroot: 0 /\n\nPLAIN\nK 1\nA\nV 16\ndir 0-1.0.r2/692\nK 4\niota\nV 18\nfile j-1.0.r1/3428\nEND\nENDREP\nid: 0.0.r2/904\ntype: dir\npred: 0.0.r1/3624\ncount: 2\ntext: 2 826 65 65 e44e4151d0d124533338619f082c8c9a\ncpath: /\ncopyroot: 0 /\n\n_0.0.t1-1 add false false /A/B/E/bravo\n\n\n904 1031\n')
    fp.close()
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', '-r2', sbox.repo_dir)
    svntest.verify.verify_outputs(message=None, actual_stdout=output, actual_stderr=errput, expected_stdout=None, expected_stderr=".*Found malformed header '[^']*' in revision file|.*Missing id field in node-rev.*")