PHP.nl

svn_update

svn_update

Update working copy

int **svn_update** string $path int $revno bool $recurse

Update working copy at to revision . If is true, directories will be recursively updated. path``revno``recurse

pathPath to local working copy.

revno Revision number to update to, default is . SVN_REVISION_HEAD

recurseWhether or not to recursively update directories.

Returns new revision number on success, returns false on failure.

Voorbeeld: Basic example

This example demonstrates basic usage of this function:

<?php
echo svn_update(realpath('working-copy'));
?>
234

svn_checkout``svn_commitSVN documentation for svn update