[Collab-qa-commits] r786 - svnbuildstat/trunk/script
goneri-guest at alioth.debian.org
goneri-guest at alioth.debian.org
Tue Apr 15 14:08:28 UTC 2008
Author: goneri-guest
Date: 2008-04-15 14:08:27 +0000 (Tue, 15 Apr 2008)
New Revision: 786
Modified:
svnbuildstat/trunk/script/svnbuildstat_update-db.pl
Log:
don't update the refresh timestamp if refreshRepository failed
Modified: svnbuildstat/trunk/script/svnbuildstat_update-db.pl
===================================================================
--- svnbuildstat/trunk/script/svnbuildstat_update-db.pl 2008-04-14 14:28:16 UTC (rev 785)
+++ svnbuildstat/trunk/script/svnbuildstat_update-db.pl 2008-04-15 14:08:27 UTC (rev 786)
@@ -26,7 +26,7 @@
my $repository = shift;
my $vcscache = $cfg->val('path', 'vcscache');
- my $localcache = $vcscache.'/'.$$repository->id;
+ my $localcache = $vcscache.'/'.$$repository->id;
my $vcs = new SvnBuildStat::Vcs({
vcstype => $$repository->vcs_id->name,
@@ -243,6 +243,11 @@
next
}
my $currentrev = refreshRepository(\$repository);
+ if (!$currentrev) {
+ debug ($repository->name." failed to refresh");
+ next;
+ }
+
if ($repository->rev && ($repository->rev eq $currentrev)) {
debug ($repository->name." didn't change since last check");
next;
More information about the Collab-qa-commits
mailing list