@SkipUnless(svntest.main.is_fs_type_fsfs)
def hotcopy_read_only(sbox):
    "'svnadmin hotcopy' a read-only source repository"
    sbox.build()
    svntest.main.chmod_tree(sbox.repo_dir, 0, svntest.main.S_ALL_WRITE)
    (backup_dir, backup_url) = sbox.add_repo_path('backup')
    (exit_code, output, errput) = svntest.main.run_svnadmin('hotcopy', sbox.repo_dir, backup_dir)
    svntest.main.chmod_tree(sbox.repo_dir, svntest.main.S_ALL_WRITE, svntest.main.S_ALL_WRITE)
    if errput:
        logger.warn('Error: hotcopy failed')
        raise SVNUnexpectedStderr(errput)
'svnadmin hotcopy' a read-only source repository
@SkipUnless(svntest.main.is_fs_type_fsfs)
def hotcopy_read_only(sbox):
    
    sbox.build()
    svntest.main.chmod_tree(sbox.repo_dir, 0, svntest.main.S_ALL_WRITE)
    (backup_dir, backup_url) = sbox.add_repo_path('backup')
    (exit_code, output, errput) = svntest.main.run_svnadmin('hotcopy', sbox.repo_dir, backup_dir)
    svntest.main.chmod_tree(sbox.repo_dir, svntest.main.S_ALL_WRITE, svntest.main.S_ALL_WRITE)
    if errput:
        logger.warn('Error: hotcopy failed')
        raise SVNUnexpectedStderr(errput)