From 296091e977a80076950399fd7ecf4adb48989365 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 20 Jan 2011 23:45:21 +0100 Subject: [PATCH] Fetch parent revisions for monotone commits as well. --- src/IDF/Scm/Monotone.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/IDF/Scm/Monotone.php b/src/IDF/Scm/Monotone.php index 45a256c..5166915 100644 --- a/src/IDF/Scm/Monotone.php +++ b/src/IDF/Scm/Monotone.php @@ -674,8 +674,12 @@ class IDF_Scm_Monotone extends IDF_Scm if (count($revs) == 0) return array(); - $certs = $this->_getCerts($revs[0]); + $res = array(); + $parents = $this->stdio->exec(array('parents', $revs[0])); + $res['parents'] = preg_split("/\n/", $parents, -1, PREG_SPLIT_NO_EMPTY); + + $certs = $this->_getCerts($revs[0]); // FIXME: this assumes that author, date and changelog are always given $res['author'] = implode(', ', $certs['author']);