]> xenbits.xensource.com Git - people/larsk/xenproject-org-gitdm.git/commitdiff
Only gripe about missing author names once
authorJonathan Corbet <corbet@lwn.net>
Mon, 3 May 2010 17:31:34 +0000 (11:31 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 3 May 2010 17:31:34 +0000 (11:31 -0600)
(per name)

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
gitdm

diff --git a/gitdm b/gitdm
index dcbb3a9f3c8ddba85b709d3324f65e8377e06c60..6ecf9840606f02c18693190f22ad3e54386dff80 100755 (executable)
--- 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):
     #