SVN 関数
PHP Manual

svn_blame

(No version information available, might be only in CVS)

svn_blameGet the SVN blame for a file

説明

array svn_blame ( string $repository_url [, int $revision_no ] )

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

パラメータ

repository_url

The repository URL.

revision_no

The revision number.

返り値

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

例1 svn_blame() example

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

print_rsvn_blame($svnurl) );

?>

上の例の出力は、たとえば 以下のようになります。

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

参考


SVN 関数
PHP Manual