svn_update
(PECL svn >= 0.1.0)
svn_update — بروزرسانی کپی به کار برده شده
Description
بروز رسانی کپی به کار برده شده path به revno. اگر recurse درست باشد دایرکتوریها بصورت بازگشتی بروزرسانی خواهد شد
Parameters
- path
-
مسیر کپی محلی.
Note: Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath() or dirname(__FILE__).
- revno
-
شماره بازبینی برای بروزرسانی بصورت پیشفرض برابر با SVN_REVISION_HEAD است.
- recurse
-
آیا دایرکتوریها به صورت بازگشتی بروزرسانی شوند
Return Values
بارگرداندن شماره بازبینی در صورت موفقیت بازگرداندن FALSE در صورت خطا.
Notes
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
Examples
Example #1 Basic example
این مثال نمایشدهنده کاربرد اصلی این تابع است:
<?php
echo svn_update(realpath('working-copy'));
?>
The above example will output something similar to:
234
See Also
- svn_checkout() - Checks out a working copy from the repository
- svn_commit() - Sends changes from the local working copy to the repository
- » مستندات SVN برای بروزرسانی svn
