From caac97926355becf2ad0d596489b475e48b922d1 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Mon, 17 Jan 2011 11:57:39 +0100 Subject: [PATCH] Don't throw an exception in case we do not find a branch cert tacked on a revision from which we want to start our log from, but simply ignore that and go over to the next revision. Note that this is also a bit fragile and should probably be converted to plain mtn au log usage. --- src/IDF/Scm/Monotone.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/IDF/Scm/Monotone.php b/src/IDF/Scm/Monotone.php index fb39d5b..39e2fc2 100644 --- a/src/IDF/Scm/Monotone.php +++ b/src/IDF/Scm/Monotone.php @@ -749,10 +749,9 @@ class IDF_Scm_Monotone extends IDF_Scm // read in the initial branches we should follow if (count($initialBranches) == 0) { if (!isset($certs['branch'])) { - throw new IDF_Scm_Exception(sprintf( - __("revision %s has no branch cert - cannot start ". - "logging from this revision"), $rev - )); + // this revision has no branch cert, we cannot start logging + // from this revision + continue; } $initialBranches = $certs['branch']; }