array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'function.svn-export.php', 1 => 'svn_export', 2 => 'Export the contents of a SVN directory', ), 'up' => array ( 0 => 'ref.svn.php', 1 => 'SVN Funzioni', ), 'prev' => array ( 0 => 'function.svn-diff.php', 1 => 'svn_diff', ), 'next' => array ( 0 => 'function.svn-fs-abort-txn.php', 1 => 'svn_fs_abort_txn', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/svn/functions/svn-export.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

svn_export

(PECL svn >= 0.3.0)

svn_exportExport the contents of a SVN directory

Descrizione

svn_export(
    string $frompath,
    string $topath,
    bool $working_copy = true,
    int $revision_no = -1
): bool

Export the contents of either a working copy or repository into a 'clean' directory.

Elenco dei parametri

frompath

The path to the current repository.

topath

The path to the new repository.

working_copy

If true, it will export uncommitted files from the working copy.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Esempi

Example #1 svn_export() example

<?php
$working_dir
= '../';
$new_working_dir = '/home/user/devel/foo/trunk';

svn_export($working_dir, $new_working_dir);
?>

Vedere anche: