略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: svn_blame

2024-11-14

svn_blame

(PECL svn >= 0.3.0)

svn_blameGet the SVN blame for a file

说明

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

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

参数

repository_url

The repository URL.

revision_no

The revision number.

返回值

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

范例

示例 #1 svn_blame() example

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

print_rsvn_blame($svnurl) );

?>

以上例程的输出类似于:

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

参见

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

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.svn-blame.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3