(PECL svn >= 0.1.0)
svn_cleanup — Recursively cleanup a working copy directory, finishing incomplete operations and removing locks
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.
String path to local working directory to cleanup
Hinweis: Relative Pfade werden so aufgelöst, als ob das aktuelle Verzeichnis das wäre, in dem sich das PHP-Binary befindet. Um stattdessen das aktuelle Verzeichnis des aufrufenden Skripts zu nutzen, müssen sie die realpath()-Funktion oder dirname(__FILE__) zu Hilfe ziehen.
Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.
Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.
Beispiel #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.