How do we count subversion commits per user
See the log command in the SVN Book. Show activity on this post. If you're using TortoiseSVN (on windows), then you can use the "Show log" function to see a list of all commits. In this dialog you can also open some statistics/graphs such as "number of commits per week" (for each user).
The svn commit command sends changes from your working copy to the respository. A log message (even if empty) must be provided. The message can be given on the command line, from a file, or an editor may be launched as the commit proceeds.
Description. Shows log messages from the repository. If no arguments are supplied, svn log shows the log messages for all files and directories inside (and including) the current working directory of your working copy. You can refine the results by specifying a path, one or more revisions, or any combination of the two ...
This gives a quick histogram by counting entries from the log in xml:
svn log -v --xml | grep '<author.*/author>' | sort $* | uniq -c | sort -rn 1841 <author>joe</author><br> 735 <author>jimbob</author><br> 129 <author>sally</author><br> 32 <author>mike</author>
Could tack on a sed command to clean things up more, but thats answers the posted question..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With