Show More
@@ -101,7 +101,8 b' def get_commits_stats(repo_name, ts_min_' | |||
|
101 | 101 | log.debug('starting parsing %s', parse_limit) |
|
102 | 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 | 106 | last_cs = cs = repo.get_changeset(rev) |
|
106 | 107 | k = '%s-%s-%s' % (cs.date.timetuple()[0], cs.date.timetuple()[1], |
|
107 | 108 | cs.date.timetuple()[2]) |
@@ -157,9 +158,6 b' def get_commits_stats(repo_name, ts_min_' | |||
|
157 | 158 | else: |
|
158 | 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 | 161 | overview_data = [] |
|
164 | 162 | for k, v in commits_by_day_aggregate.items(): |
|
165 | 163 | overview_data.append([k, v]) |
General Comments 0
You need to be logged in to leave comments.
Login now