summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2010-05-03 11:31:34 -0600
committerJonathan Corbet <corbet@lwn.net>2010-05-03 11:31:34 -0600
commitdb2db734803f9381ac3679e2161c788f8c1677dc (patch)
treea1ec7813abf9673fb7ea1474b37ad1a5c3f2d714
parent080a2715cf739aba827afd20a78c85a8b1edd2b5 (diff)
Only gripe about missing author names once
(per name) Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rwxr-xr-xgitdm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gitdm b/gitdm
index dcbb3a9..6ecf984 100755
--- a/gitdm
+++ b/gitdm
@@ -17,6 +17,12 @@ import os, re, sys, rfc822, string
from patterns import *
Today = datetime.date.today()
+
+#
+# Remember author names we have griped about.
+#
+GripedAuthorNames = [ ]
+
#
# Control options.
#
@@ -248,10 +254,15 @@ def grabpatch():
p.removed += 1
if '@' in p.author.name:
- print '%s is an author name, probably not what you want' % p.author.name
+ GripeAboutAuthorName (p.author.name)
return p
+def GripeAboutAuthorName (name):
+ if name in GripedAuthorNames:
+ return
+ GripedAuthorNames.append (name)
+ print '%s is an author name, probably not what you want' % (name)
def ApplyFileFilter (line, ignore):
#