Browse Source

Cleanup: removed some commented lines.

Heikki Hokkanen 16 years ago
parent
commit
94105720ad
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      gitstats

+ 0
- 4
gitstats View File

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