php8.5
Home/ Manual/ svn / functions/ svn_update

svn_update

PHP function Edit on GitHub ✎

(PECL svn >= 0.1.0)

Update working copy

Description

svn_update(string $path, int $revno = SVN_REVISION_HEAD, bool $recurse = true): int

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

Parameters

path

Path to local working copy.

Relativepath

revno

Revision number to update to, default is SVN_REVISION_HEAD.

recurse

Whether or not to recursively update directories.

Return Values

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

Examples

Basic example

This example demonstrates basic usage of this function:

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

The above example will output something similar to:

output
234

Notes Func

See Also

Source: reference/svn/functions/svn-update.xml · from the official PHP manual (php/doc-en)