Bug #59987 [Com]: [NEEDS PATCH] not working flag with svn_log

From: Date: Mon, 10 Oct 2011 07:24:32 +0000
Subject: Bug #59987 [Com]: [NEEDS PATCH] not working flag with svn_log
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8686@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=59987&edit=1 ID: 59987 Comment by: shal at semantic-fidelity dot org Reported by: shal at semantic-fidelity dot org Summary: [NEEDS PATCH] not working flag with svn_log Status: Open Type: Bug Package: svn Operating System: MacOSX 10.6.8 PHP Version: 5_3 SVN-2011-10-04 (dev) Block user comment: N Private report: N New Comment: Thank you Alain! Previous Comments: ------------------------------------------------------------------------ [2011-10-10 03:14:52] alan_k@php.net Feel free to contact me if you need help. Regards Alan ------------------------------------------------------------------------ [2011-10-07 08:17:52] shal at semantic-fidelity dot org I will have a look at the source, otherwise I guess I might need to learn one thing or two about PHP extensions development before being able to submit anything which could be of same help around. Thanks for your feedback Alan. ------------------------------------------------------------------------ [2011-10-05 21:08:16] alan at akbkhome dot com I do not think we have any full time developers working on this, if you need this, have a look at the svn.c code, it's quite simple to understand. and propose a patch It may be that using the latest C api is the fix for this. or it's just missing data comming back from the call. ------------------------------------------------------------------------ [2011-10-04 07:50:22] shal at semantic-fidelity dot org Description: ------------ svn_log function with default flags (SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY) would not provide me with path changes. Forcing the flags parameter to SVN_DISCOVER_CHANGED_PATHS wouldn't either. Reproduce code: --------------- define( 'SVN_USER_NAME', 'user' ); define( 'SVN_PASSWORD', '' ); define( 'SVN_PROTOCOL', 'svn' ); define( 'SVN_HOST', '127.0.0.1' ); define( 'SVN_REPOSITORY', 'repos/' ); svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_USERNAME, SVN_USER_NAME ); svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_PASSWORD, SVN_PASSWORD ); $url_repository = SVN_PROTOCOL .'://' . SVN_HOST . '/' . SVN_REPOSITORY; $revisions = svn_log( $url_repository, SVN_REVISION_HEAD, SVN_REVISION_INITIAL, 0 ); echo '<pre>revisions', print_r( $revisions, TRUE ), '</pre>'; Expected result: ---------------- [0] => Array, ordered most recent (highest) revision first ( [rev] => integer revision number [author] => string author name [msg] => string log message [date] => string date formatted per ISO 8601, i.e. date('c') [paths] => Array, describing changed files ( [0] => Array ( [action] => string letter signifying change [path] => absolute repository path of changed file ) [1] => ... ) ) Actual result: -------------- [0] => Array, ordered most recent (highest) revision first ( [rev] => integer revision number [author] => string author name [msg] => string log message [date] => string date formatted per ISO 8601, i.e. date('c') ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=59987&edit=1

« previous php.pecl.dev (#8686) next »