svn_import
(PECL svn >= 0.2.0)
Imports an unversioned path into a repository
Description
Commits unversioned path into repository at url. If path is a directory and nonrecursive is false, the directory will be imported recursively.
Parameters
pathPath of file or directory to import.
Relativepath
urlRepository URL to import into.
nonrecursiveWhether or not to refrain from recursively processing directories.
Return Values
Success
Examples
Basic example
This example demonstrates a basic use-case of this function. To import a directory named new-files into the repository at http://www.example.com/svnroot/incoming/abc, use:
<?php
svn_import(realpath('new-files'), 'http://www.example.com/svnroot/incoming/abc', false);
?>Notes Func
See Also
svn_add()- SVN documentation for svn import