svn_blame

Get the SVN blame for a file

&reftitle.description; `array` `svn_blame` `string` `repository_url` `int` `revision_no` SVN_REVISION_HEAD

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

&reftitle.parameters;

`repository_url`

- The repository URL.

`revision_no`

- The revision number.

&reftitle.returnvalues;

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

&reftitle.examples;

### `svn_blame` example

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

    print_r( svn_blame($svnurl) );

    ?>

&example.outputs.similar;

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

&reftitle.seealso;

- `svn_diff`
- `svn_logs`
- `svn_status`