Show More
@@ -101,7 +101,8 b' def get_commits_stats(repo_name, ts_min_' | |||||
101 | log.debug('starting parsing %s', parse_limit) |
|
101 | log.debug('starting parsing %s', parse_limit) | |
102 | lmktime = mktime |
|
102 | lmktime = mktime | |
103 |
|
103 | |||
104 | for cnt, rev in enumerate(repo.revisions[last_rev:]): |
|
104 | last_rev = last_rev + 1 if last_rev > 0 else last_rev | |
|
105 | for rev in repo.revisions[last_rev:last_rev + parse_limit]: | |||
105 | last_cs = cs = repo.get_changeset(rev) |
|
106 | last_cs = cs = repo.get_changeset(rev) | |
106 | k = '%s-%s-%s' % (cs.date.timetuple()[0], cs.date.timetuple()[1], |
|
107 | k = '%s-%s-%s' % (cs.date.timetuple()[0], cs.date.timetuple()[1], | |
107 | cs.date.timetuple()[2]) |
|
108 | cs.date.timetuple()[2]) | |
@@ -157,9 +158,6 b' def get_commits_stats(repo_name, ts_min_' | |||||
157 | else: |
|
158 | else: | |
158 | commits_by_day_aggregate[k] = 1 |
|
159 | commits_by_day_aggregate[k] = 1 | |
159 |
|
160 | |||
160 | if cnt >= parse_limit: |
|
|||
161 | #don't fetch to much data since we can freeze application |
|
|||
162 | break |
|
|||
163 | overview_data = [] |
|
161 | overview_data = [] | |
164 | for k, v in commits_by_day_aggregate.items(): |
|
162 | for k, v in commits_by_day_aggregate.items(): | |
165 | overview_data.append([k, v]) |
|
163 | overview_data.append([k, v]) |
General Comments 0
You need to be logged in to leave comments.
Login now