svn_export

(PECL svn >= 0.3.0)

svn_exportExport the contents of a SVN directory

说明

svn_export ( string $frompath , string $topath [, bool $working_copy = TRUE [, int $revision_no = -1 ]] ) : bool

Export the contents of either a working copy or repository into a 'clean' directory.

参数

frompath

The path to the current repository.

topath

The path to the new repository.

working_copy

If TRUE, it will export uncommitted files from the working copy.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

Example #1 svn_export() example

<?php
$working_dir     
'../';
$new_working_dir '/home/user/devel/foo/trunk';

svn_export($working_dir$new_working_dir);
?>

参见

  • svn_import() - Imports an unversioned path into a repository

相关文章
php cubrid 函数 get contents of collection type column using oidphp gopher 函数 translate a gopher formatted directory entry into an associative arrayphp firebird/interbase 函数 output blob contents to browserphp iis 函数 sets script mapping on a virtual directoryphp svn 函数 returns the contents of a file in a repositoryphp svn 函数 recursively cleanup a working copy directory finishing incomplete operations and removing locksphp svn 函数 delete items from a working copy or repositoryphp svn 函数 recursively diffs two pathsphp svn 函数 export the contents of a svn directoryphp svn 函数 copies a file or a directory returns true if all is ok false otherwisephp svn 函数 deletes a file or a directory return true if all is ok false otherwisephp svn 函数 enumerates the directory entries under path; returns a hash of dir names to file typephp svn 函数 returns a stream to access the contents of a file from a given version of the fsphp svn 函数 return true if the path points to a directory false otherwisephp svn 函数 creates a new empty directory returns true if all is ok false otherwisephp svn 函数 creates a new empty file returns true if all is ok false otherwisephp svn 函数 returns list of directory contents in repository url optionally at revision numberphp svn 函数 creates a directory in a working copy or repositoryphp svn 函数 gets a handle on the filesystem for a repositoryphp svn 函数 make a hot copy of the repos at repospath; copy it to destpath
关注编程学问公众号