Forum und email

svn_cleanup

(PECL svn:0.1-0.2)

svn_cleanup — Recursively cleanup a working copy directory, finishing incomplete operations and removing locks

설명

bool svn_cleanup ( string $workingdir )

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

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 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.