|
|
|
|
|
|
174
|
self.last_active_day = None
|
174
|
self.last_active_day = None
|
|
175
|
self.active_days = set()
|
175
|
self.active_days = set()
|
|
176
|
|
176
|
|
|
|
|
177
|
+ # lines
|
|
|
|
178
|
+ self.total_lines = 0
|
|
|
|
179
|
+ self.total_lines_added = 0
|
|
|
|
180
|
+ self.total_lines_removed = 0
|
|
|
|
181
|
+
|
|
177
|
# timezone
|
182
|
# timezone
|
|
178
|
self.commits_by_timezone = {} # timezone -> commits
|
183
|
self.commits_by_timezone = {} # timezone -> commits
|
|
179
|
|
184
|
|
|
|
|
|
|
|
390
|
(files, inserted, deleted) = map(lambda el : int(el), numbers)
|
395
|
(files, inserted, deleted) = map(lambda el : int(el), numbers)
|
|
391
|
total_lines += inserted
|
396
|
total_lines += inserted
|
|
392
|
total_lines -= deleted
|
397
|
total_lines -= deleted
|
|
|
|
398
|
+ self.total_lines_added += inserted
|
|
|
|
399
|
+ self.total_lines_removed += deleted
|
|
393
|
else:
|
400
|
else:
|
|
394
|
print 'Warning: failed to handle line "%s"' % line
|
401
|
print 'Warning: failed to handle line "%s"' % line
|
|
395
|
(files, inserted, deleted) = (0, 0, 0)
|
402
|
(files, inserted, deleted) = (0, 0, 0)
|
|
|
|
|
|
|
520
|
f.write('<dt>Generator</dt><dd><a href="http://gitstats.sourceforge.net/">GitStats</a> (version %s)</dd>' % getversion())
|
527
|
f.write('<dt>Generator</dt><dd><a href="http://gitstats.sourceforge.net/">GitStats</a> (version %s)</dd>' % getversion())
|
|
521
|
f.write('<dt>Report Period</dt><dd>%s to %s (%d days, %d active days)</dd>' % (data.getFirstCommitDate().strftime(format), data.getLastCommitDate().strftime(format), data.getCommitDeltaDays(), len(data.getActiveDays())))
|
528
|
f.write('<dt>Report Period</dt><dd>%s to %s (%d days, %d active days)</dd>' % (data.getFirstCommitDate().strftime(format), data.getLastCommitDate().strftime(format), data.getCommitDeltaDays(), len(data.getActiveDays())))
|
|
522
|
f.write('<dt>Total Files</dt><dd>%s</dd>' % data.getTotalFiles())
|
529
|
f.write('<dt>Total Files</dt><dd>%s</dd>' % data.getTotalFiles())
|
|
523
|
- f.write('<dt>Total Lines of Code</dt><dd>%s</dd>' % data.getTotalLOC())
|
|
|
|
|
|
530
|
+ f.write('<dt>Total Lines of Code</dt><dd>%s (%d added, %d removed)</dd>' % (data.getTotalLOC(), data.total_lines_added, data.total_lines_removed))
|
|
524
|
f.write('<dt>Total Commits</dt><dd>%s</dd>' % data.getTotalCommits())
|
531
|
f.write('<dt>Total Commits</dt><dd>%s</dd>' % data.getTotalCommits())
|
|
525
|
f.write('<dt>Authors</dt><dd>%s</dd>' % data.getTotalAuthors())
|
532
|
f.write('<dt>Authors</dt><dd>%s</dd>' % data.getTotalAuthors())
|
|
526
|
f.write('</dl>')
|
533
|
f.write('</dl>')
|