@Skip(svntest.main.is_fs_type_bdb)
def verify_quickly(sbox):
    'verify quickly using metadata'
    sbox.build(create_wc=False)
    rev_file = open(fsfs_file(sbox.repo_dir, 'revs', '1'), 'r+b')
    rev_file.seek(8)
    rev_file.write(b'#')
    rev_file.close()
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir, '--metadata-only')
    if svntest.main.is_fs_log_addressing():
        exp_out = svntest.verify.RegexListOutput([])
        exp_err = svntest.verify.RegexListOutput(['svnadmin: E160004:.*'], False)
    else:
        exp_out = svntest.verify.RegexListOutput([])
        exp_err = svntest.verify.RegexListOutput([])
    if svntest.main.fs_has_rep_sharing():
        exp_out.insert(0, '.*Verifying.*metadata.*')
    if svntest.verify.verify_outputs("Unexpected error while running 'svnadmin verify'.", output, errput, exp_out, exp_err):
        raise svntest.Failure
    svntest.main.safe_rmtree(sbox.repo_dir, True)
verify quickly using metadata
@Skip(svntest.main.is_fs_type_bdb)
def verify_quickly(sbox):
    
    sbox.build(create_wc=False)
    rev_file = open(fsfs_file(sbox.repo_dir, 'revs', '1'), 'r+b')
    rev_file.seek(8)
    rev_file.write(b'#')
    rev_file.close()
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir, '--metadata-only')
    if svntest.main.is_fs_log_addressing():
        exp_out = svntest.verify.RegexListOutput([])
        exp_err = svntest.verify.RegexListOutput(['svnadmin: E160004:.*'], False)
    else:
        exp_out = svntest.verify.RegexListOutput([])
        exp_err = svntest.verify.RegexListOutput([])
    if svntest.main.fs_has_rep_sharing():
        exp_out.insert(0, '.*Verifying.*metadata.*')
    if svntest.verify.verify_outputs("Unexpected error while running 'svnadmin verify'.", output, errput, exp_out, exp_err):
        raise svntest.Failure
    svntest.main.safe_rmtree(sbox.repo_dir, True)