php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59987 [PATCH NEEDED] not working flag with svn_log
Submitted: 2011-10-04 07:50 UTC Modified: 2011-12-21 15:08 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: shal at semantic-fidelity dot org Assigned:
Status: Open Package: svn (PECL)
PHP Version: 5_3 SVN-2011-10-04 (dev) OS: MacOSX 10.6.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shal at semantic-fidelity dot org
New email:
PHP Version: OS:

 

 [2011-10-04 07:50 UTC] 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')
)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-05 21:08 UTC] 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-07 08:17 UTC] 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-10 03:14 UTC] alan_k@php.net
Feel free to contact me if you need help.

Regards
Alan
 [2011-10-10 07:24 UTC] shal at semantic-fidelity dot org
Thank you Alain!
 [2011-10-12 21:06 UTC] felipe@php.net
-Summary: [NEEDS PATCH] not working flag with svn_log +Summary: not working flag with svn_log
 [2011-12-21 15:08 UTC] alan_k@php.net
-Summary: not working flag with svn_log +Summary: [PATCH NEEDED] not working flag with svn_log -Type: Bug +Type: Feature/Change Request
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC