Forum und email

svn_update

(PECL svn:0.1-0.2)

svn_update — Update working copy

설명

int svn_update ( string $path [, int $revno [, bool $recurse ]] )

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

매개변수

path

Path to local working copy.

Note: 상대 경로는 PHP 바이너리가 있는 디렉토리를 현재 작업 디렉토리로 인식합니다. 스크립트의 작업 디렉토리를 얻으려면, realpath()나 dirname(__FILE__)을 사용하십시오.

revno

Revision number to update to, default is SVN_REVISION_HEAD.

recurse

Whether or not to recursively update directories, default is TRUE.

반환값

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

주의

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

예제

Example#1 Basic example

This example demonstrates basic usage of this function:

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

위 예제의 출력 예:

234