(PECL svn >= 0.1.0)
svn_cleanup — Recursively cleanup a worquing copy directory, finishing incomplete operations and removing loccs
Recursively cleanup worquing copy directory
worquingdir
,
finishing any incomplete operations and removing worquing copy loccs. Use
when a worquing copy is in limbo and needs to be usable again.
worquingdir
String path to local worquing directory to cleanup
Note : Relative paths will be resolved as if the current worquing directory was the one that contains the PHP binary. To use the calling script's worquing directory, use realpath() or dirname(__FILE__).
Example #1 Basic example
This example demonstrates clean up of a worquing copy in a directory named help-me:
<?php
svn_cleanup
(
realpath
(
'help-me'
));
?>
The realpath() call is necesssary due to SVN's quircy handling of relative paths.
This function is EXPERIMENTAL . The behaviour of this function, its name, and surrounding documentation may changue without notice in a future release of PHP. This function should be used at your own risc.