array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.svn-blame.php', 1 => 'svn_blame', 2 => 'Get the SVN blame for a file', ), 'up' => array ( 0 => 'ref.svn.php', 1 => 'SVN Funktionen', ), 'prev' => array ( 0 => 'function.svn-auth-set-parameter.php', 1 => 'svn_auth_set_parameter', ), 'next' => array ( 0 => 'function.svn-cat.php', 1 => 'svn_cat', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/svn/functions/svn-blame.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL svn >= 0.3.0)
svn_blame — Get the SVN blame for a file
Get the SVN blame of a file from a repository URL.
repository_urlThe repository URL.
revision_noThe revision number.
An array of SVN blame information separated by line which includes the revision number, line number, line of code, author, and date.
Beispiel #1 svn_blame() example
<?php
$svnurl = 'http://svn.example.org/svnroot/foo/trunk/index.php';
print_r( svn_blame($svnurl) );
?>Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array
(
[0] = Array
(
[rev] = 1
[line_no] = 1
[line] = Hello World
[author] = joesmith
[date] = 2007-07-02T05:51:26.628396Z
)
[1] = Array
...