svn_blame
(PECL svn >= 0.3.0)
svn_blame — Get the SVN blame for a file
Beschreibung
$repository_url, int $revision_no = SVN_REVISION_HEAD): arrayGet the SVN blame of a file from a repository URL.
Parameter-Liste
-
repository_url -
The repository URL.
-
revision_no -
The revision number.
Rückgabewerte
An array of SVN blame information separated by line which includes the revision number, line number, line of code, author, and date.
Beispiele
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
...
Siehe auch
- svn_diff() - Recursively diffs two paths
- svn_logs()
- svn_status() - Returns the status of working copy files and directories

