SVN_BLAME(3) 1 SVN_BLAME(3)
svn_blame - Get the SVN blame for a file
SYNOPSIS
array svn_blame (string $repository_url, [int $revision_no = SVN_REVISION_HEAD])
DESCRIPTION
Get the SVN blame of a file from a repository URL.
PARAMETERS
o $repository_url
- The repository URL.
o $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(3) example
<?php
$svnurl = 'http://svn.example.org/svnroot/foo/trunk/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
svn_diff(3), svn_logs(3), svn_status(3).
PHP Documentation Group SVN_BLAME(3)