array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.svn-revert.php', 1 => 'svn_revert', 2 => 'Revert changes to the working copy', ), 'up' => array ( 0 => 'ref.svn.php', 1 => 'SVN 函数', ), 'prev' => array ( 0 => 'function.svn-repos-recover.php', 1 => 'svn_repos_recover', ), 'next' => array ( 0 => 'function.svn-status.php', 1 => 'svn_status', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/svn/functions/svn-revert.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

svn_revert

(PECL svn >= 0.3.0)

svn_revertRevert changes to the working copy

说明

svn_revert(string $path, bool $recursive = false): bool

Revert any local changes to the path in a working copy.

参数

path

The path to the working repository.

recursive

Optionally make recursive changes.

返回值

成功时返回 true, 或者在失败时返回 false

参见