Bug #60207 [Opn->Csd]: SVN Status with show updates not working
| From: | a dot vi at laposte dot net | Date: | Thu, 03 Nov 2011 12:18:42 +0000 |
| Subject: | Bug #60207 [Opn->Csd]: SVN Status with show updates not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164841@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60207&edit=1
ID: 60207
User updated by: a dot vi at laposte dot net
Reported by: a dot vi at laposte dot net
Summary: SVN Status with show updates not working
-Status: Open
+Status: Closed
Type: Bug
Package: svn
Operating System: Ubuntu Server
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
I forgot the authentication, it's working now. Sorry !
svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_USERNAME, SVN_USER_NAME );
svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_PASSWORD, SVN_PASSWORD );
Previous Comments:
------------------------------------------------------------------------
[2011-11-03 12:13:57] a dot vi at laposte dot net
Description:
------------
Hi,
I'm trying to use svn_status. It seems to fail when using SVN_SHOW_UPDATES. The
function returns "false".
Here's my code:
$status = svn_status(realpath('/tank/www/prod'), SVN_SHOW_UPDATES); //returns
false
When I issued:
#root@ns38:/# svn status -u /tank/www/prod/
I receive 32 lines of outdated files.
More information:
Subversion command-line client, version 1.6.12.
PECL: svn-1.0.1
Libsvn-dev: Version: 1.6.12dfsg-4ubuntu2.1
Thks
Test script:
---------------
$status = svn_status(realpath('/tank/restovisio/prod'));
if (is_array($status) && count($status) > 0) {
print_r($status);
}
else {
echo 'FAILED';
var_dump($status);
}
// OUTPUT:
// bool(false)
Expected result:
----------------
/tank/www/prod/public/svn.php
/tank/www/prod/public/index.php
...
/tank/www/prod
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60207&edit=1