[Debian-med-packaging] Commit statistics
Andreas Tille
andreas at an3as.eu
Wed Dec 8 15:49:04 UTC 2010
Hi,
I wanted to do some statistics about commits to our VCSes. For SVN I
was able to shamelessly copy an example created by Gregor Herman for the
Perl group with some extensions from Holger Levsen from Debian Edu. So
the attached script does just counts the commits to SVN if you call it
on Alioth. Would anybody able to get the same data for the commits in
Git?
Kind regards
Andreas.
--
http://fam-tille.de
-------------- next part --------------
#!/bin/bash
GROUP=debian-med
SVN=file:///svn/debian-med/
if [ "$1" != "" ] ; then
SPAN="10 years"
else
SPAN="1 year"
fi
TMPFILE=$(mktemp)
trap "rm -rf $TMPFILE" QUIT INT EXIT
# 1) members
echo -n "members: "
getent group $GROUP | cut -f4 -d: | sed -e 's/,/\n/g' | wc -l
# 2) committers last year
DATE=$(date --iso --date "$SPAN ago")
svn log -r{$DATE}:HEAD $SVN > $TMPFILE
echo -n "committers since $SPAN: "
grep ^r[0-9] $TMPFILE | \
cut -f2 -d"|" | \
sort -u | \
wc -l
echo -n "commits since $SPAN: "
grep ^r[0-9] $TMPFILE | \
wc -l
rm -f $TMPFILE
More information about the Debian-med-packaging
mailing list