From 874b5aa7e9c4eeef72c8ae8e89e0f564c0999f57 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 2 Dec 2010 23:23:38 +0100 Subject: [PATCH] monotone changelog: do not add the parents of revisions which have not attached the branch certificates in question to the horizont, otherwise we end up going up the whole history for some feature branch as soon as we hit the base branch of a project. --- src/IDF/Scm/Monotone.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IDF/Scm/Monotone.php b/src/IDF/Scm/Monotone.php index f001236..3afbd78 100644 --- a/src/IDF/Scm/Monotone.php +++ b/src/IDF/Scm/Monotone.php @@ -709,10 +709,10 @@ class IDF_Scm_Monotone extends IDF_Scm $log['commit'] = $rev; $logs[] = (object)$log; - } - $out = $this->stdio->exec(array('parents', $rev)); - $horizont += preg_split("/\n/", $out, -1, PREG_SPLIT_NO_EMPTY); + $out = $this->stdio->exec(array('parents', $rev)); + $horizont += preg_split("/\n/", $out, -1, PREG_SPLIT_NO_EMPTY); + } } return $logs;