|
svn_logReturns the commit log messages of a repository URL Beschreibung
array svn_log
( string
$repos_url
[, int $start_revision
[, int $end_revision
[, int $limit = 0
[, int $flags = SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY
]]]] )
svn_log returns the complete history of the item at the repository URL
Parameter-Liste
RückgabewerteOn success, this function returns an array file listing in the format of: [0] => Array, ordered most recent (highest) revision first
(
[rev] => integer revision number
[author] => string author name
[msg] => string log message
[date] => string date formatted per ISO 8601, i.e. date('c')
[paths] => Array, describing changed files
(
[0] => Array
(
[action] => string letter signifying change
[path] => absolute repository path of changed file
)
[1] => ...
)
)
[1] => ...
The value of action is a subset of the » status output in the first column, where possible values are:
If no changes were made to the item, an empty array is returned. AnmerkungenWarnung
Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko. Beispiele
Beispiel #1 svn_log example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array
(
[0] => Array
(
[rev] => 23
[author] => 'joe'
[msg] => 'Add cheese and salami to our sandwich.'
[date] => '2007-04-06T16:00:27-04:00'
[paths] => Array
(
[0] => Array
(
[action] => 'M'
[path] => '/sandwich.txt'
)
)
)
)
|