Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do we count subversion commits per user

Tags:

svn

How do we count subversion commits per user

like image 619
Kurund Jalmi Avatar asked Jul 21 '10 08:07

Kurund Jalmi


People also ask

How do I see all commits in svn?

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).

What is svn commit?

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.

What are svn logs?

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 ...


1 Answers

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..

like image 105
Singularity Avatar answered Sep 23 '22 02:09

Singularity