downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

svn_client_version> <svn_checkout
Last updated: Fri, 20 May 2011

view this page in

svn_cleanup

(PECL svn >= 0.1.0)

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

Descripción

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.

Parámetros

workingdir

String path to local working directory to cleanup

Note: Las rutas relativas se resolverán como si el directorio de trabajo actual es el que contiene el binario de PHP. Para utilizar el directorio de trabajo que contiene el script a llamar, use realpath() o dirname(__FILE__).

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Notas

Warning

Esta función ha sido declarada EXPERIMENTAL. Su comportamiento, su nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Use esta función bajo su propio riesgo.

Ejemplos

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.

Ver también



add a note add a note User Contributed Notes svn_cleanup
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites