def setrevprop(sbox):
    'setlog, setrevprop, delrevprop; bypass hooks'
    sbox.build()
    iota_path = os.path.join(sbox.wc_dir, 'iota')
    mu_path = sbox.ospath('A/mu')
    svntest.actions.run_and_verify_svnadmin([], [], 'setlog', sbox.repo_dir, '-r0', '--bypass-hooks', iota_path)
    svntest.actions.run_and_verify_svnadmin([], svntest.verify.AnyOutput, 'setlog', sbox.repo_dir, '-r0', mu_path)
    svntest.actions.run_and_verify_svn(["This is the file 'iota'.\n", '\n'], [], 'propget', '--revprop', '-r0', 'svn:log', sbox.wc_dir)
    foo_path = os.path.join(sbox.wc_dir, 'foo')
    svntest.main.file_write(foo_path, 'foo')
    (exit_code, output, errput) = svntest.main.run_svnadmin('setrevprop', sbox.repo_dir, '-r0', 'svn:author', foo_path)
    if errput:
        logger.warn("Error: 'setrevprop' failed")
        raise svntest.Failure
    svntest.actions.run_and_verify_svn(['foo\n'], [], 'propget', '--revprop', '-r0', 'svn:author', sbox.wc_dir)
    svntest.actions.run_and_verify_svnadmin([], [], 'delrevprop', '-r0', sbox.repo_dir, 'svn:author')
    svntest.actions.run_and_verify_svnlook([], '.*E200017.*svn:author.*', 'propget', '--revprop', '-r0', sbox.repo_dir, 'svn:author')
setlog, setrevprop, delrevprop; bypass hooks
def setrevprop(sbox):
    
    sbox.build()
    iota_path = os.path.join(sbox.wc_dir, 'iota')
    mu_path = sbox.ospath('A/mu')
    svntest.actions.run_and_verify_svnadmin([], [], 'setlog', sbox.repo_dir, '-r0', '--bypass-hooks', iota_path)
    svntest.actions.run_and_verify_svnadmin([], svntest.verify.AnyOutput, 'setlog', sbox.repo_dir, '-r0', mu_path)
    svntest.actions.run_and_verify_svn(["This is the file 'iota'.\n", '\n'], [], 'propget', '--revprop', '-r0', 'svn:log', sbox.wc_dir)
    foo_path = os.path.join(sbox.wc_dir, 'foo')
    svntest.main.file_write(foo_path, 'foo')
    (exit_code, output, errput) = svntest.main.run_svnadmin('setrevprop', sbox.repo_dir, '-r0', 'svn:author', foo_path)
    if errput:
        logger.warn("Error: 'setrevprop' failed")
        raise svntest.Failure
    svntest.actions.run_and_verify_svn(['foo\n'], [], 'propget', '--revprop', '-r0', 'svn:author', sbox.wc_dir)
    svntest.actions.run_and_verify_svnadmin([], [], 'delrevprop', '-r0', sbox.repo_dir, 'svn:author')
    svntest.actions.run_and_verify_svnlook([], '.*E200017.*svn:author.*', 'propget', '--revprop', '-r0', sbox.repo_dir, 'svn:author')