[Fusionforge-commits] r8032 - in trunk/gforge: packaging/cron.d plugins/scmgit/common plugins/scmsvn/common
Roland Mas
lolando at libremir.placard.fr.eu.org
Thu Aug 27 15:48:18 CEST 2009
Author: lolando
Date: 2009-08-27 15:48:18 +0200 (Thu, 27 Aug 2009)
New Revision: 8032
Modified:
trunk/gforge/packaging/cron.d/db-postgresql
trunk/gforge/plugins/scmgit/common/GitPlugin.class.php
trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php
Log:
Fixes to cronjobs
Modified: trunk/gforge/packaging/cron.d/db-postgresql
===================================================================
--- trunk/gforge/packaging/cron.d/db-postgresql 2009-08-27 13:48:07 UTC (rev 8031)
+++ trunk/gforge/packaging/cron.d/db-postgresql 2009-08-27 13:48:18 UTC (rev 8032)
@@ -44,6 +44,12 @@
# Create SCM repositories
0 * * * * root $PHP $FFCRON/create_scm_repos.php
+# Gather commit stats from SCM repositories
+2 * * * * root $PHP $FFCRON/gather_scm_stats.php
+
+# Generate snapshots and tarballs from SCM repositories
+3 * * * * root $PHP $FFCRON/generate_scm_snapshots.php
+
# this cronjob analyse the apache log and instert them in the db table stats_subd_pages
# this is not used in fusionforge IHM.
# Daily sweep of the HTTP log files for project activity
Modified: trunk/gforge/plugins/scmgit/common/GitPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmgit/common/GitPlugin.class.php 2009-08-27 13:48:07 UTC (rev 8031)
+++ trunk/gforge/plugins/scmgit/common/GitPlugin.class.php 2009-08-27 13:48:18 UTC (rev 8032)
@@ -290,7 +290,7 @@
$repo = $this->git_root . '/' . $project->getUnixName() ;
if (!is_dir ($repo) || !is_file ("$repo/refs")) {
- echo "No repository\n" ;
+ // echo "No repository\n" ;
db_rollback () ;
return false ;
}
Modified: trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php 2009-08-27 13:48:07 UTC (rev 8031)
+++ trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php 2009-08-27 13:48:18 UTC (rev 8032)
@@ -238,7 +238,7 @@
return false ;
}
- $pipe = popen ("svn log file://$repo --xml -v -q", 'r' ) ;
+ $pipe = popen ("svn log file://$repo --xml -v -q 2> /dev/null", 'r' ) ;
// cleaning stats_cvs_* table for the current day
$res = db_query_params ('DELETE FROM stats_cvs_group WHERE month=$1 AND day=$2 AND group_id=$3',
More information about the Fusionforge-commits
mailing list