Forum PHP 2017


(PECL svn >= 0.3.0)

svn_blameGet the SVN blame for a file


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

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

Elenco dei parametri


The repository URL.


The revision number.

Valori restituiti

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


Example #1 svn_blame() example


print_rsvn_blame($svnurl) );


Il precedente esempio visualizzerĂ  qualcosa simile a:

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

Vedere anche:

  • svn_diff() - Recursively diffs two paths
  • svn_logs()
  • svn_status() - Returns the status of working copy files and directories

add a note add a note

User Contributed Notes

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