array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.svn-import.php', 1 => 'svn_import', ), 'up' => array ( 0 => 'ref.svn.php', 1 => 'SVN İşlevleri', ), 'prev' => array ( 0 => 'function.svn-fs-youngest-rev.php', 1 => 'svn_fs_youngest_rev', ), 'next' => array ( 0 => 'function.svn-log.php', 1 => 'svn_log', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/svn/functions/svn-import.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL svn >= 0.2.0)
svn_import — Imports an unversioned path into a repository
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.
Bilginize: Göreli yollar, geçerli çalışma dizini PHP çalıştırılabilirini içeren dizinlerden biriymiş gibi çözümlenir. Betiğin çalıştırıldığı dizini kullanmak için realpath() işlevi veya dirname(__FILE__) kullanılır.
url
Repository URL to import into.
nonrecursive
Whether or not to refrain from recursively processing directories.
Ö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);
?>
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 risk göze alınamayacaksa bu işlev kullanılmamalıdır.