Subversion svn_blame
(PECL svn >= 0.3.0)
svn_blame — Get the SVN blame for a file
설명
svn_blame(string $repository_url
, int $revision_no
= SVN_REVISION_HEAD): array
저장소 URL에서 파일의 SVN 비난을 가져옵니다.
매개변수
repository_url
- 저장소 URL입니다.
revision_no
- 개정 번호입니다.
반환 값
개정 번호, 줄 번호, 코드 줄, 작성자 및 날짜를 포함하는 줄로 구분된 SVN 비난 정보의 배열입니다.
Examples
예제 #1 svn_blame() 예제
<?php
$svnurl = 'http://svn.example.org/svnroot/foo/trunk/index.php';
print_r( svn_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() - 재귀적으로 두 경로를 비교합니다.
- svn_logs()
- svn_status() - 작업 복사본 파일 및 디렉터리의 상태를 반환합니다.