|
svn_statusReturns the status of working copy files and directories 説明
array svn_status(string
$path , int $flags = 0)Returns the status of working copy files and directories, giving modifications, additions, deletions and other changes to items in the working copy. パラメータ
戻り値Returns a numerically indexed array of associative arrays detailing the status of items in the repository: Array ( [0] => Array ( // information on item ) [1] => ... ) The information on the item is an associative array that can contain the following keys:
These keys are only set if the item is versioned:
例
例1 Basic example This example demonstrates a basic, theoretical usage of this function.
<?php 上の例の出力は、 たとえば以下のようになります。 Array ( [0] => Array ( [path] => /home/bob/wc/sandwich.txt [text_status] => 8 // item was modified [repos_text_status] => 1 // no information available, use update [prop_status] => 3 // no changes [repos_prop_status] => 1 // no information available, use update [name] => sandwich.txt [url] => http://www.example.com/svnroot/deli/trunk/sandwich.txt [repos] => http://www.example.com/svnroot/ [revision] => 123 [kind] => 1 // file [schedule] => 0 // no special actions scheduled [cmt_date] => 1165543135 [cmt_rev] => 120 [cmt_author] => Alice [prop_time] => 1180201728 [text_time] => 1180201729 ) ) 注意警告
この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。 |