StatCVS and StatSVN

Here are 2 tools for generating repository statistics for source trees controlled with CVS and SVN. Both tools can generate stats for subtrees. Here’s how to generate stats for a CVS checkout:

  • cd to module root or a subdirectory which the stats will be generated for.
  • Create the cvs log by executing
    cvs log > logfile.log
  • Execute
    statcvs logfile.log . -o -output-dir /path/to/stats

    to generate stats.

and for SVN:

  • cd to module root or a subdirectory which the stats will be generated for.
  • Create the svn log by executing
    svn log -v --xml > logfile.log
    
  • Execute
    statsvn logfile.log . -output-dir /path/to/stats

    to generate stats.

Now you can browse, upload, do whatever you want with generated stats. I generated stats for our java-config-2 project. The sample StatSVN output can be viewed at http://dev.gentoo.org/~serkan/statsvn-java-config-2/. Also Jeremy generated CVS stats for gentoo-x86/sys-apps which can be viewed at http://dev.gentoo.org/~darkside/stats/statcvs-sys-apps/.

Further Reading: You can read the following manuals for detailed information.

WARNING: Please do not run cvs log on cvs.gentoo.org. Use rsync to mirror the portage tree from AnonCVS provided by infra and run cvs log on the local mirror.