|
|
@@ -81,6 +81,12 @@ def getversion():
|
|
81
|
81
|
VERSION = getpipeoutput(["git rev-parse --short %s" % getcommitrange('HEAD')]).split('\n')[0]
|
|
82
|
82
|
return VERSION
|
|
83
|
83
|
|
|
|
84
|
+def getgitversion():
|
|
|
85
|
+ return getpipeoutput(['git --version']).split('\n')[0]
|
|
|
86
|
+
|
|
|
87
|
+def getgnuplotversion():
|
|
|
88
|
+ return getpipeoutput(['gnuplot --version']).split('\n')[0]
|
|
|
89
|
+
|
|
84
|
90
|
class DataCollector:
|
|
85
|
91
|
"""Manages data collection from a revision control repository."""
|
|
86
|
92
|
def __init__(self):
|
|
|
@@ -587,7 +593,7 @@ class HTMLReportCreator(ReportCreator):
|
|
587
|
593
|
f.write('<dl>')
|
|
588
|
594
|
f.write('<dt>Project name</dt><dd>%s</dd>' % (data.projectname))
|
|
589
|
595
|
f.write('<dt>Generated</dt><dd>%s (in %d seconds)</dd>' % (datetime.datetime.now().strftime(format), time.time() - data.getStampCreated()))
|
|
590
|
|
- f.write('<dt>Generator</dt><dd><a href="http://gitstats.sourceforge.net/">GitStats</a> (version %s)</dd>' % getversion())
|
|
|
596
|
+ f.write('<dt>Generator</dt><dd><a href="http://gitstats.sourceforge.net/">GitStats</a> (version %s), %s, %s</dd>' % (getversion(), getgitversion(), getgnuplotversion()))
|
|
591
|
597
|
f.write('<dt>Report Period</dt><dd>%s to %s</dd>' % (data.getFirstCommitDate().strftime(format), data.getLastCommitDate().strftime(format)))
|
|
592
|
598
|
f.write('<dt>Age</dt><dd>%d days, %d active days (%3.2f%%)</dd>' % (data.getCommitDeltaDays(), len(data.getActiveDays()), (100.0 * len(data.getActiveDays()) / data.getCommitDeltaDays())))
|
|
593
|
599
|
f.write('<dt>Total Files</dt><dd>%s</dd>' % data.getTotalFiles())
|