Don't gather file information for now (we need more disk space)
diff --git a/commits/capture/GitLogCapture.class.inc b/commits/capture/GitLogCapture.class.inc
index 74ca45d..f6ca90d 100644
--- a/commits/capture/GitLogCapture.class.inc
+++ b/commits/capture/GitLogCapture.class.inc
@@ -39,9 +39,10 @@
}
function addFile($ref, $filename, $added, $removed) {
- $filename = addSlashes($filename);
- $sql = "insert ignore into GitCommitFile (path, ref, file, added, removed) values ('$this->path', '$ref', '$filename', '$added', '$removed')";
- $this->execute($sql);
+// FIXME Don't gather file information for now (we need more disk space).
+// $filename = addSlashes($filename);
+// $sql = "insert ignore into GitCommitFile (path, ref, file, added, removed) values ('$this->path', '$ref', '$filename', '$added', '$removed')";
+// $this->execute($sql);
}
function endCommit($ref) {
diff --git a/commits/capture/create_query_tables.sql b/commits/capture/create_query_tables.sql
index fd902ed..630aaec 100755
--- a/commits/capture/create_query_tables.sql
+++ b/commits/capture/create_query_tables.sql
@@ -32,20 +32,20 @@
join GitCommitAuthor as a on c.path=a.path and c.ref=a.ref
where date > NOW() - INTERVAL 3 MONTH group by project, login;
-drop table if exists ProjectActivity;
-create table ProjectActivity
- select yearmonth, count(distinct project)
- from commits
- where login != 'gerrit@eclipse.o'
- group by yearmonth
- order by yearmonth;
+#drop table if exists ProjectActivity;
+#create table ProjectActivity
+# select yearmonth, count(distinct project)
+# from commits
+# where login != 'gerrit@eclipse.o'
+# group by yearmonth
+# order by yearmonth;
-drop table if exists CommitterProjectActivity;
-create table CommitterProjectActivity
- select login, project, yearmonth as period, count(distinct revision) as count
- from commits
- where login != 'gerrit@eclipse.o'
- group by project, login, yearmonth
- order by yearmonth;
-create index login_project on CommitterProjectActivity(login, project);
+#drop table if exists CommitterProjectActivity;
+#create table CommitterProjectActivity
+# select login, project, yearmonth as period, count(distinct revision) as count
+# from commits
+# where login != 'gerrit@eclipse.o'
+# group by project, login, yearmonth
+# order by yearmonth;
+#create index login_project on CommitterProjectActivity(login, project);