[pypy-svn] r71632 - pypy/trunk/pypy/doc/tool

arigo at codespeak.net arigo at codespeak.net
Tue Mar 2 14:27:26 CET 2010


Author: arigo
Date: Tue Mar  2 14:27:23 2010
New Revision: 71632

Modified:
   pypy/trunk/pypy/doc/tool/makecontributor.py
Log:
Actually exclude the authors that want to be excluded :-/


Modified: pypy/trunk/pypy/doc/tool/makecontributor.py
==============================================================================
--- pypy/trunk/pypy/doc/tool/makecontributor.py	(original)
+++ pypy/trunk/pypy/doc/tool/makecontributor.py	Tue Mar  2 14:27:23 2010
@@ -8,12 +8,12 @@
 try: 
     path = py.std.sys.argv[1]
 except IndexError: 
-    print "usage: %s PATH" %(py.std.sys.argv[0])
+    print "usage: %s ROOTPATH" %(py.std.sys.argv[0])
     raise SystemExit, 1
 
 d = {}
 
-for logentry in py.path.svnwc(py.std.sys.argv[1]).log(): 
+for logentry in py.path.svnwc(path).log(): 
     a = logentry.author 
     if a in d: 
         d[a] += 1
@@ -30,6 +30,8 @@
 cutoff = 5 # cutoff for authors in the LICENSE file
 mark = False
 for author, count in items: 
+    if author in excluded:
+        continue
     user = uconf.system.User(author)
     try:
         realname = user.realname.strip()



More information about the Pypy-commit mailing list