svn_import
(PECL svn >= 0.2.0)
svn_import — Imports an unversioned path into a repository
Açıklama
$path
, string $url
, bool $nonrecursive
)
Commits unversioned path into repository at
url. If path is a
directory and nonrecursive is FALSE,
the directory will be imported recursively.
Değiştirgeler
-
path -
Path of file or directory to import.
Bilginize: Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath() or dirname(__FILE__).
-
url -
Repository URL to import into.
-
nonrecursive -
Whether or not to refrain from recursively processing directories.
Dönen Değerler
Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.
Notlar
Bu işlev DENEYSELDİR. Bu işlevin davranışı, ismi ve belgeleri PHP'nin sonraki sürümlerinde hiçbir duyuru yapılmaksızın değiştirilebilir. Bu riski göze alamayacaksanız bu işlevi kullanmayın.
Örnekler
Örnek 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);
?>
Ayrıca Bakınız
- svn_add() - Schedules the addition of an item in a working directory
- » SVN documentation for svn import
