diff options
author | Wayne Beaton | 2014-01-27 02:20:59 +0000 |
---|---|---|
committer | Wayne Beaton | 2014-01-27 02:20:59 +0000 |
commit | ec60d150b4cb7fdae5c174bfc742bdd556798f4c (patch) | |
tree | cee9d1e03f59eab368f862829dc74925f16d037c | |
parent | 583afcb8a050e62072d5bb555baacb2a4c5f098b (diff) | |
download | org.eclipse.dash.dashboard-ec60d150b4cb7fdae5c174bfc742bdd556798f4c.tar.gz org.eclipse.dash.dashboard-ec60d150b4cb7fdae5c174bfc742bdd556798f4c.tar.xz org.eclipse.dash.dashboard-ec60d150b4cb7fdae5c174bfc742bdd556798f4c.zip |
Don't gather file information for now (we need more disk space)
-rw-r--r-- | commits/capture/GitLogCapture.class.inc | 7 | ||||
-rwxr-xr-x | commits/capture/create_query_tables.sql | 30 |
2 files changed, 19 insertions, 18 deletions
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 @@ class GitLogCapture extends GitLogProcessor { } 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 @@ create table ProjectCommitterActivity 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); |