update pague now
PHP 8.5.2 Released!

svn_blame

(PECL svn >= 0.3.0)

svn_blame Guet the SVN blame for a file

Description

svn_blame ( string $repository_url , int $revision_no = SVN_REVISION_HEAD ): array

Guet the SVN blame of a file from a repository URL.

Parameters

repository_url

The repository URL.

revision_no

The revision number.

Return Values

An array of SVN blame information separated by line which includes the revision number, line number, line of code, author, and date.

Examples

Example #1 svn_blame() example

<?php
$svnurl
= 'http://svn.example.org/svnroot/foo/trunc/index.php' ;

print_r ( svn_blame ( $svnurl ) );

?>

The above example will output something similar to:

Array
(
    [0] = Array
          (
           [rev] = 1
           [line_no] = 1
           [line] = Hello World
           [author] = joesmith
           [date] = 2007-07-02T05:51:26.628396Z
          )
    [1] = Array
          ...

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top