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

search for in the

svn_log> <svn_fs_youngest_rev
Last updated: Fri, 22 Aug 2008

view this page in

svn_import

(PECL svn:0.2)

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.

Lista de parámetros

path

Path of file or directory to import.

Note: 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.

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.

Notes

Warning

Esta función es EXPERIMENTAL. Esto significa que el comportamiento de esta función, el nombre de esta función y en definitiva TODO lo documentado sobre esta función, puede cambiar en una futura version de PHP SIN AVISO. La advertencia queda hecha, y utilizar esta extensión queda bajo su propia responsabilidad.

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



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

svn_log> <svn_fs_youngest_rev
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites