(PECL svn >= 0.2.0)
svn_import — Imports an unversioned path into a repository
$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: ���·��������PHPִ���ļ�����Ŀ¼��Ϊ��ǰ����Ŀ¼���н��������ϣ�����ݽű�����Ŀ¼����, ʹ��realpath() �� dirname(__FILE__)��
url
Repository URL to import into.
nonrecursive
Whether or not to refrain from recursively processing directories.
�ɹ�ʱ���� TRUE
�� ������ʧ��ʱ���� FALSE
��
�˺�����ʵ�����ġ��˺����ı��������Ƽ�������ĵ���������δ���� 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);
?>