php man page for svn_import

Query: svn_import

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SVN_IMPORT(3)								 1							     SVN_IMPORT(3)

svn_import - Imports an unversioned path into a repository

SYNOPSIS
bool svn_import (string $path, string $url, bool $nonrecursive)
DESCRIPTION
Commits unversioned $path into repository at $url. If $path is a directory and $nonrecursive is FALSE, the directory will be imported recursively.
PARAMETERS
o $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(3) or dirname(__FILE__). o $url - Repository URL to import into. o $nonrecursive - Whether or not to refrain from recursively processing directories.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
EXAMPLES
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); ?>
SEE ALSO
svn_add(3), SVN documentation for svn import. PHP Documentation Group SVN_IMPORT(3)
Related Man Pages
svn_status(3) - php
is_dir(3) - php
svn_diff(3) - php
svn_import(3) - php
svn_ls(3) - php
Similar Topics in the Unix Linux Community
Change to a new working directory...
system command
for
copying a pattern of files in one directory into other with new pattern names...
URL Redirection