|
|
@@ -189,7 +189,6 @@ class GitDataCollector(DataCollector):
|
|
189
|
189
|
tags_sorted_by_date_desc = map(lambda el : el[1], reversed(sorted(map(lambda el : (el[1]['date'], el[0]), data.tags.items()))))
|
|
190
|
190
|
prev = None
|
|
191
|
191
|
for tag in reversed(tags_sorted_by_date_desc):
|
|
192
|
|
- #print prev, tag
|
|
193
|
192
|
cmd = 'git shortlog -s "%s"' % tag
|
|
194
|
193
|
if prev != None:
|
|
195
|
194
|
cmd += ' "^%s"' % prev
|
|
|
@@ -199,12 +198,10 @@ class GitDataCollector(DataCollector):
|
|
199
|
198
|
prev = tag
|
|
200
|
199
|
for line in output.split('\n'):
|
|
201
|
200
|
parts = re.split('\s+', line, 2)
|
|
202
|
|
- #print parts
|
|
203
|
201
|
commits = int(parts[1])
|
|
204
|
202
|
author = parts[2]
|
|
205
|
203
|
self.tags[tag]['commits'] += commits
|
|
206
|
204
|
self.tags[tag]['authors'][author] = commits
|
|
207
|
|
- #print self.tags
|
|
208
|
205
|
|
|
209
|
206
|
# Collect revision statistics
|
|
210
|
207
|
# Outputs "<stamp> <author>"
|
|
|
@@ -310,7 +307,6 @@ class GitDataCollector(DataCollector):
|
|
310
|
307
|
lines = []
|
|
311
|
308
|
for revline in revlines:
|
|
312
|
309
|
time, rev = revline.split(' ')
|
|
313
|
|
- #linecount = int(getpipeoutput(['git-ls-tree -r --name-only "%s"' % rev, 'wc -l']).split('\n')[0])
|
|
314
|
310
|
linecount = self.getFilesInCommit(rev)
|
|
315
|
311
|
lines.append('%d %d' % (int(time), linecount))
|
|
316
|
312
|
|