downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

svn_log> <svn_fs_youngest_rev
Last updated: Fri, 20 May 2011

view this page in

svn_import

(PECL svn >= 0.2.0)

svn_importImports an unversioned path into a repository

Descripción

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.

Parámetros

path

Path of file or directory to import.

Note: Las rutas relativas se resolverán como si el directorio de trabajo actual es el que contiene el binario de PHP. Para utilizar el directorio de trabajo que contiene el script a llamar, use realpath() o dirname(__FILE__).

url

Repository URL to import into.

nonrecursive

Whether or not to refrain from recursively processing directories.

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Notas

Warning

Esta función ha sido declarada EXPERIMENTAL. Su comportamiento, su nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Use esta función bajo su propio riesgo.

Ejemplos

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);
?>

Ver también



add a note add a note User Contributed Notes svn_import
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites