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

search for in the

TCP> <SVN Funkcje
Last updated: Fri, 22 Aug 2008

view this page in

svn_update

(PECL svn:0.1-0.2)

svn_updateUpdate working copy

Opis

int svn_update ( string $path [, int $revno [, bool $recurse ]] )

Update working copy at path to revision revno . If recurse is true, directories will be recursively updated.

Parametry

path

Path to local working copy.

Informacja: Względne ścieżki zostaną rozwiązane, jeśli bieżący katalog roboczy jest jednym z zawierających binaria PHP. Aby odwołać się do skryptu roboczego katalogu, użyj realpath() lub dirname(__FILE__).

revno

Revision number to update to, default is SVN_REVISION_HEAD.

recurse

Whether or not to recursively update directories, default is TRUE.

Zwracane wartości

Returns new revision number on success, returns FALSE on failure.

Notatki

Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Przykłady

Example #1 Basic example

This example demonstrates basic usage of this function:

<?php
echo svn_update(realpath('working-copy'));
?>

Powyższy przykład wyświetli coś podobnego do:

234



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

TCP> <SVN Funkcje
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites