diff options
author | Travis Oliphant <oliphant@enthought.com> | 2009-10-01 15:08:42 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2009-10-01 15:08:42 +0000 |
commit | 8c7d1bc554e6b5bbb7900a2f6d976d72795bb454 (patch) | |
tree | ca379ef1ec17c375e3023cad25abd39b32afcf5c /tools/commitstats.py | |
parent | 5932ddd5cbd9c756b0b8ab8a4b1ea690b1bb1a7b (diff) | |
download | numpy-8c7d1bc554e6b5bbb7900a2f6d976d72795bb454.tar.gz |
Add a tool for determining active SVN committers.
Diffstat (limited to 'tools/commitstats.py')
-rw-r--r-- | tools/commitstats.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/commitstats.py b/tools/commitstats.py new file mode 100644 index 000000000..6fd8ca1c0 --- /dev/null +++ b/tools/commitstats.py @@ -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 + + + |