Parcourir la source

Removed useless merge_authors configuration option. Use .mailmap instead.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Jani Hur il y a 11 ans
Parent
révision
a5a9b09f39
1 fichiers modifiés avec 0 ajouts et 12 suppressions
  1. 0
    12
      gitstats

+ 0
- 12
gitstats Voir le fichier

@@ -46,7 +46,6 @@ conf = {
46 46
 	'commit_end': 'HEAD',
47 47
 	'linear_linestats': 1,
48 48
 	'project_name': '',
49
-	'merge_authors': {},
50 49
 	'processes': 8,
51 50
 	'start_date': ''
52 51
 }
@@ -323,8 +322,6 @@ class GitDataCollector(DataCollector):
323 322
 				parts = re.split('\s+', line, 2)
324 323
 				commits = int(parts[1])
325 324
 				author = parts[2]
326
-				if author in conf['merge_authors']:
327
-					author = conf['merge_authors'][author]
328 325
 				self.tags[tag]['commits'] += commits
329 326
 				self.tags[tag]['authors'][author] = commits
330 327
 
@@ -341,8 +338,6 @@ class GitDataCollector(DataCollector):
341 338
 			timezone = parts[3]
342 339
 			author, mail = parts[4].split('<', 1)
343 340
 			author = author.rstrip()
344
-			if author in conf['merge_authors']:
345
-				author = conf['merge_authors'][author]
346 341
 			mail = mail.rstrip('>')
347 342
 			domain = '?'
348 343
 			if mail.find('@') != -1:
@@ -555,8 +550,6 @@ class GitDataCollector(DataCollector):
555 550
 				if pos != -1:
556 551
 					try:
557 552
 						(stamp, author) = (int(line[:pos]), line[pos+1:])
558
-						if author in conf['merge_authors']:
559
-							author = conf['merge_authors'][author]
560 553
 						self.changes_by_date[stamp] = { 'files': files, 'ins': inserted, 'del': deleted, 'lines': total_lines }
561 554
 
562 555
 						date = datetime.datetime.fromtimestamp(stamp)
@@ -613,8 +606,6 @@ class GitDataCollector(DataCollector):
613 606
 					try:
614 607
 						oldstamp = stamp
615 608
 						(stamp, author) = (int(line[:pos]), line[pos+1:])
616
-						if author in conf['merge_authors']:
617
-							author = conf['merge_authors'][author]
618 609
 						if oldstamp > stamp:
619 610
 							# clock skew, keep old timestamp to avoid having ugly graph
620 611
 							stamp = oldstamp
@@ -1432,9 +1423,6 @@ class GitStats:
1432 1423
 					raise KeyError('no such key "%s" in config' % key)
1433 1424
 				if isinstance(conf[key], int):
1434 1425
 					conf[key] = int(value)
1435
-				elif isinstance(conf[key], dict):
1436
-					kk,vv = value.split(',', 1)
1437
-					conf[key][kk] = vv
1438 1426
 				else:
1439 1427
 					conf[key] = value
1440 1428
 			elif o in ('-h', '--help'):