svn_update

(PECL svn >= 0.1.0)

svn_updateUpdate working copy

˵��

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.

����

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.

����ֵ

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

ע��

Warning

�˺�����ʵ�����ġ��˺����ı��󣬰������Ƽ�������ĵ���������δ���� PHP �����汾��δ֪ͨ�ͱ��޸ġ�ʹ�ñ����������Ե� ��

����

Example #1 Basic example

This example demonstrates basic usage of this function:

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

�������̵���������ڣ�

234

�μ�