svn_import

Imports an unversioned path into a repository

&reftitle.description; `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.

&reftitle.parameters;

`path`

- Path of file or directory to import.

  &svn.relativepath;

`url`

- Repository URL to import into.

`nonrecursive`

- Whether or not to refrain from recursively processing directories.

&reftitle.returnvalues;

&return.success;

&reftitle.examples;

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

&reftitle.notes; &warn.experimental.func;
&reftitle.seealso;

- `svn_add`
- SVN documentation for svn import