Forum und email

svn_import

(PECL svn:0.2)

svn_import — Imports an unversioned path into a repository

설명

bool svn_import ( string $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.

매개변수

path

Path of file or directory to import.

Note: 상대 경로는 PHP 바이너리가 있는 디렉토리를 현재 작업 디렉토리로 인식합니다. 스크립트의 작업 디렉토리를 얻으려면, realpath()나 dirname(__FILE__)을 사용하십시오.

url

Repository URL to import into.

nonrecursive

Whether or not to refrain from recursively processing directories.

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.

주의

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

예제

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 https://www.example.com/svnroot/incoming/abc, use:

<?php
svn_import
(realpath('new-files'), 'https://www.example.com/svnroot/incoming/abc'false);
?>