<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.svn.php',
    1 => 'SVN',
    2 => 'Subversion',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => '其它服务',
  ),
  'prev' => 
  array (
    0 => 'svmmodel.save.php',
    1 => 'SVMModel::save',
  ),
  'next' => 
  array (
    0 => 'svn.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/svn/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.svn.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.svn" class="book">
 
 <h1 class="title">Subversion</h1>
 

 
 <div id="intro.svn" class="preface">
  <h1 class="title">简介</h1>
  <p class="simpara">
   此扩展实现了版本控制系统 <a href="http://subversion.apache.org/" class="link external">&raquo;&nbsp;Subversion</a>（SVN）与 PHP 的绑定，允许
   PHP 脚本与 SVN 存储库和工作副本通信，而无需命令行直接调用 <var class="filename">svn</var> 可执行文件。
  </p>
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">此扩展是<em>实验性</em>的。
此扩展的行为，包括其函数的名称和围绕此扩展的相关文档都可能会在未来的
PHP 版本中发生变化而不另行通知。使用本扩展应自行承担风险。</p></div>
 </div>
 

 




 





 






<ul class="chunklist chunklist_book"><li><a href="svn.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="svn.requirements.php">需求</a></li><li><a href="svn.installation.php">安装</a></li></ul></li><li><a href="svn.constants.php">预定义常量</a></li><li><a href="ref.svn.php">SVN 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.svn-add.php">svn_add</a> — 在工作目录列入新增项</li><li><a href="function.svn-auth-get-parameter.php">svn_auth_get_parameter</a> — Retrieves authentication parameter</li><li><a href="function.svn-auth-set-parameter.php">svn_auth_set_parameter</a> — Sets an authentication parameter</li><li><a href="function.svn-blame.php">svn_blame</a> — Get the SVN blame for a file</li><li><a href="function.svn-cat.php">svn_cat</a> — Returns the contents of a file in a repository</li><li><a href="function.svn-checkout.php">svn_checkout</a> — Checks out a working copy from the repository</li><li><a href="function.svn-cleanup.php">svn_cleanup</a> — Recursively cleanup a working copy directory, finishing incomplete operations and removing locks</li><li><a href="function.svn-client-version.php">svn_client_version</a> — Returns the version of the SVN client libraries</li><li><a href="function.svn-commit.php">svn_commit</a> — 将修改的本地文件副本发送至版本库</li><li><a href="function.svn-delete.php">svn_delete</a> — Delete items from a working copy or repository</li><li><a href="function.svn-diff.php">svn_diff</a> — Recursively diffs two paths</li><li><a href="function.svn-export.php">svn_export</a> — Export the contents of a SVN directory</li><li><a href="function.svn-fs-abort-txn.php">svn_fs_abort_txn</a> — Aborts a transaction</li><li><a href="function.svn-fs-apply-text.php">svn_fs_apply_text</a> — Creates and returns a stream that will be used to replace</li><li><a href="function.svn-fs-begin-txn2.php">svn_fs_begin_txn2</a> — Create a new transaction</li><li><a href="function.svn-fs-change-node-prop.php">svn_fs_change_node_prop</a> — Return true if everything is ok, false otherwise</li><li><a href="function.svn-fs-check-path.php">svn_fs_check_path</a> — Determines what kind of item lives at path in a given repository fsroot</li><li><a href="function.svn-fs-contents-changed.php">svn_fs_contents_changed</a> — Return true if content is different, false otherwise</li><li><a href="function.svn-fs-copy.php">svn_fs_copy</a> — Copies a file or a directory</li><li><a href="function.svn-fs-delete.php">svn_fs_delete</a> — Deletes a file or a directory</li><li><a href="function.svn-fs-dir-entries.php">svn_fs_dir_entries</a> — Enumerates the directory entries under path; returns a hash of dir names to file type</li><li><a href="function.svn-fs-file-contents.php">svn_fs_file_contents</a> — Returns a stream to access the contents of a file from a given version of the fs</li><li><a href="function.svn-fs-file-length.php">svn_fs_file_length</a> — Returns the length of a file from a given version of the fs</li><li><a href="function.svn-fs-is-dir.php">svn_fs_is_dir</a> — Determines if a path points to a directory</li><li><a href="function.svn-fs-is-file.php">svn_fs_is_file</a> — Determines if a path points to a file</li><li><a href="function.svn-fs-make-dir.php">svn_fs_make_dir</a> — Creates a new empty directory</li><li><a href="function.svn-fs-make-file.php">svn_fs_make_file</a> — Creates a new empty file</li><li><a href="function.svn-fs-node-created-rev.php">svn_fs_node_created_rev</a> — Returns the revision in which path under fsroot was created</li><li><a href="function.svn-fs-node-prop.php">svn_fs_node_prop</a> — Returns the value of a property for a node</li><li><a href="function.svn-fs-props-changed.php">svn_fs_props_changed</a> — Return true if props are different, false otherwise</li><li><a href="function.svn-fs-revision-prop.php">svn_fs_revision_prop</a> — Fetches the value of a named property</li><li><a href="function.svn-fs-revision-root.php">svn_fs_revision_root</a> — Get a handle on a specific version of the repository root</li><li><a href="function.svn-fs-txn-root.php">svn_fs_txn_root</a> — Creates and returns a transaction root</li><li><a href="function.svn-fs-youngest-rev.php">svn_fs_youngest_rev</a> — Returns the number of the youngest revision in the filesystem</li><li><a href="function.svn-import.php">svn_import</a> — Imports an unversioned path into a repository</li><li><a href="function.svn-log.php">svn_log</a> — Returns the commit log messages of a repository URL</li><li><a href="function.svn-ls.php">svn_ls</a> — Returns list of directory contents in repository URL, optionally at revision number</li><li><a href="function.svn-mkdir.php">svn_mkdir</a> — Creates a directory in a working copy or repository</li><li><a href="function.svn-repos-create.php">svn_repos_create</a> — Create a new subversion repository at path</li><li><a href="function.svn-repos-fs.php">svn_repos_fs</a> — Gets a handle on the filesystem for a repository</li><li><a href="function.svn-repos-fs-begin-txn-for-commit.php">svn_repos_fs_begin_txn_for_commit</a> — Create a new transaction</li><li><a href="function.svn-repos-fs-commit-txn.php">svn_repos_fs_commit_txn</a> — Commits a transaction and returns the new revision</li><li><a href="function.svn-repos-hotcopy.php">svn_repos_hotcopy</a> — Make a hot-copy of the repos at repospath; copy it to destpath</li><li><a href="function.svn-repos-open.php">svn_repos_open</a> — Open a shared lock on a repository</li><li><a href="function.svn-repos-recover.php">svn_repos_recover</a> — Run recovery procedures on the repository located at path</li><li><a href="function.svn-revert.php">svn_revert</a> — Revert changes to the working copy</li><li><a href="function.svn-status.php">svn_status</a> — Returns the status of working copy files and directories</li><li><a href="function.svn-update.php">svn_update</a> — Update working copy</li></ul></li></ul></div><?php manual_footer($setup); ?>