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.
feature.better-home
Thomas Keller 2011-01-17 11:57:39 +01:00
parent bbc9bd6ef4
commit caac979263
1 changed files with 3 additions and 4 deletions

View File

@ -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'];
}