svn_import

(PECL svn >= 0.2.0)

svn_importImports an unversioned path into a repository

说锟斤拷

svn_import ( string $path , string $url , bool $nonrecursive ) : bool

Commits unversioned path into repository at url. If path is a directory and nonrecursive is FALSE, the directory will be imported recursively.

锟斤拷锟斤拷

path

Path of file or directory to import.

Note: 锟斤拷锟铰凤拷锟斤拷锟斤拷锟斤拷锟絇HP执锟斤拷锟侥硷拷锟斤拷锟斤拷目录锟斤拷为锟斤拷前锟斤拷锟斤拷目录锟斤拷锟叫斤拷锟斤拷锟斤拷锟斤拷锟较o拷锟斤拷锟斤拷萁疟锟斤拷锟斤拷锟侥柯硷拷锟斤拷锟�, 使锟斤拷realpath() 锟斤拷 dirname(__FILE__)锟斤拷

url

Repository URL to import into.

nonrecursive

Whether or not to refrain from recursively processing directories.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

注锟斤拷

Warning

锟剿猴拷锟斤拷锟斤拷实锟斤拷锟斤拷锟侥★拷锟剿猴拷锟斤拷锟侥憋拷锟襟,帮拷锟斤拷锟斤拷锟狡硷拷锟斤拷锟斤拷锟斤拷牡锟斤拷锟斤拷锟斤拷锟斤拷锟轿达拷锟斤拷锟� PHP 锟斤拷锟斤拷锟芥本锟斤拷未通知锟酵憋拷锟睫改★拷使锟矫憋拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆碉拷 锟斤拷

锟斤拷锟斤拷

Example #1 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);
?>

锟轿硷拷