Add the parent property to a subversion commit.

This commit is contained in:
Patrick Georgi 2011-01-30 00:05:09 +01:00 committed by Thomas Keller
parent 7bcfb806b0
commit fbd1ebc294

View File

@ -433,6 +433,9 @@ class IDF_Scm_Svn extends IDF_Scm
$res['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $xml->logentry->date));
$res['title'] = (string) $xml->logentry->msg;
$res['commit'] = (string) $xml->logentry['revision'];
$res['parents'] = $xml->logentry['revision'] > 1
? array((string) $xml->logentry['revision'] - 1)
: array();
$res['diff'] = ($getdiff) ? $this->getDiff($commit) : '';
$res['tree'] = '';
$res['branch'] = '';