|
|
|
|
|
|
139
|
|
139
|
|
|
140
|
##
|
140
|
##
|
|
141
|
# Save cacheable data
|
141
|
# Save cacheable data
|
|
142
|
- def saveCache(self, filename):
|
|
|
|
|
|
142
|
+ def saveCache(self, cachefile):
|
|
143
|
print 'Saving cache...'
|
143
|
print 'Saving cache...'
|
|
144
|
f = open(cachefile, 'w')
|
144
|
f = open(cachefile, 'w')
|
|
145
|
#pickle.dump(self.cache, f)
|
145
|
#pickle.dump(self.cache, f)
|
|
|
|
|
|
|
209
|
self.tags[tag] = { 'stamp': stamp, 'hash' : hash, 'date' : datetime.datetime.fromtimestamp(stamp).strftime('%Y-%m-%d'), 'commits': 0, 'authors': {} }
|
209
|
self.tags[tag] = { 'stamp': stamp, 'hash' : hash, 'date' : datetime.datetime.fromtimestamp(stamp).strftime('%Y-%m-%d'), 'commits': 0, 'authors': {} }
|
|
210
|
|
210
|
|
|
211
|
# collect info on tags, starting from latest
|
211
|
# collect info on tags, starting from latest
|
|
212
|
- tags_sorted_by_date_desc = map(lambda el : el[1], reversed(sorted(map(lambda el : (el[1]['date'], el[0]), data.tags.items()))))
|
|
|
|
|
|
212
|
+ tags_sorted_by_date_desc = map(lambda el : el[1], reversed(sorted(map(lambda el : (el[1]['date'], el[0]), self.tags.items()))))
|
|
213
|
prev = None
|
213
|
prev = None
|
|
214
|
for tag in reversed(tags_sorted_by_date_desc):
|
214
|
for tag in reversed(tags_sorted_by_date_desc):
|
|
215
|
cmd = 'git shortlog -s "%s"' % tag
|
215
|
cmd = 'git shortlog -s "%s"' % tag
|