From fbd1ebc294ab80928b414b5d4de38c3163734aad Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 30 Jan 2011 00:05:09 +0100 Subject: [PATCH] Add the parent property to a subversion commit. --- src/IDF/Scm/Svn.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index ce90403..1904079 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -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'] = '';