svn_cleanup

(PECL svn >= 0.1.0)

svn_cleanupRecursively cleanup a working copy directory, finishing incomplete operations and removing locks

˵��

svn_cleanup ( string $workingdir ) : bool

Recursively cleanup working copy directory workingdir, finishing any incomplete operations and removing working copy locks. Use when a working copy is in limbo and needs to be usable again.

����

workingdir

String path to local working directory to cleanup

Note: ���·��������PHPִ���ļ�����Ŀ¼��Ϊ��ǰ����Ŀ¼���н��������ϣ�����ݽű�����Ŀ¼����, ʹ��realpath() �� dirname(__FILE__)��

����ֵ

�ɹ�ʱ���� TRUE�� ������ʧ��ʱ���� FALSE��

ע��

Warning

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

����

Example #1 Basic example

This example demonstrates clean up of a working copy in a directory named help-me:

<?php
svn_cleanup
(realpath('help-me'));
?>

The realpath() call is necessary due to SVN's quirky handling of relative paths.