Permalink
Browse files

Add a tool for determining active SVN committers.

  • Loading branch information...
1 parent 5932ddd commit 8c7d1bc554e6b5bbb7900a2f6d976d72795bb454 @teoliphant teoliphant committed Oct 1, 2009
Showing with 43 additions and 0 deletions.
  1. +43 −0 tools/commitstats.py
View
@@ -0,0 +1,43 @@
+
+# Run svn log -l <some number>
+
+import re
+import numpy as np
+import os
+
+names = re.compile(r'r\d+\s[|]\s(.*)\s[|]\s200')
+
+def get_count(filename, repo):
+ mystr = open(filename).read()
+ result = names.findall(mystr)
+ u = np.unique(result)
+ count = [(x,result.count(x),repo) for x in u]
+ return count
+
+
+command = 'svn log -l 2300 > output.txt'
+os.chdir('..')
+os.system(command)
+
+count = get_count('output.txt', 'NumPy')
+
+
+os.chdir('../scipy')
+os.system(command)
+
+count.extend(get_count('output.txt', 'SciPy'))
+
+os.chdir('../scikits')
+os.system(command)
+count.extend(get_count('output.txt', 'SciKits'))
+count.sort()
+
+
+
+print "** SciPy and NumPy **"
+print "====================="
+for val in count:
+ print val
+
+
+

0 comments on commit 8c7d1bc

Please sign in to comment.