Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display statistics from an SVN repository on a web page

Tags:

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.

like image 502
markdorison Avatar asked Mar 10 '10 22:03

markdorison


People also ask

How do I access svn from browser?

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.

How do I view svn history?

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.

How do I list all svn repositories?

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


1 Answers

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.

like image 78
Pekka Avatar answered Sep 30 '22 17:09

Pekka