What is the best way to get statistics for an entire subversion repository and display some of them on a web page? Example. Total number of commits today, this month etc, most active committer etc.
Connecting with your browserNavigate to the Subversion page. Under the list of current projects, click the link for your repository. An authentication pop-up box then appears: Use the username and password you created when setting up the repository.
To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.
svn list is most useful if you want to see what files a repository has without downloading a working copy: $ svn list http://svn.red-bean.com/repos/test/support README. txt INSTALL examples/ … For further details, see the earlier section the section called “Listing versioned directories”.
I haven't worked with it myself but I think StatSVN is worth a look. It's Java based.
Features:
- Timeline for the lines of code
- Lines of code for each developer
- Activity by Clock time
- Authors Activity
- Author activity per Module
- Author Most Recent Commits with links to ViewVc
- Stats per directory
- File count
- Average file size
- Largest files
- Files with most revisions
- Directory Sizes
- Repository Tags Number of LOC per version.
- Repository tree with file count and lines of code
- LOC and Churn the evolution of LOC and the amount of change per day
- Repo Map the dynamic hierarchical view of your repo for the last 30 days
The current version of StatSVN generates a static suite of HTML documents containing tables and chart images. StatSVN is open source software, released under the terms of the LGPL, based on StatCVS. StatSVN uses JFreeChart to generate charts.
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