{"id":11,"date":"2009-02-11T19:45:01","date_gmt":"2008-11-06T08:30:32","guid":{"rendered":""},"modified":"2017-03-07T20:20:59","modified_gmt":"2017-03-07T20:20:59","slug":"statcvs_and_statsvn","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/serkan\/2009\/02\/11\/statcvs_and_statsvn\/","title":{"rendered":"StatCVS and StatSVN"},"content":{"rendered":"<p>Here are 2 tools for generating repository statistics for source trees controlled with CVS and SVN. Both tools can generate stats for subtrees. Here&#8217;s how to generate stats for a CVS checkout:<\/p>\n<ul>\n<li>cd to module root or a subdirectory which the stats will be generated for.<\/li>\n<li>Create the cvs log by executing\n<pre>cvs log > logfile.log<\/pre>\n<\/li>\n<li>Execute\n<pre>statcvs logfile.log . -o -output-dir \/path\/to\/stats<\/pre>\n<p> to generate stats.<\/li>\n<\/ul>\n<p>and  for SVN:<\/p>\n<ul>\n<li>cd to module root or a subdirectory which the stats will be generated for.<\/li>\n<li>Create the svn log by executing\n<pre>svn log -v --xml > logfile.log\r\n<\/pre>\n<\/li>\n<li>Execute\n<pre>statsvn logfile.log . -output-dir \/path\/to\/stats<\/pre>\n<p> to generate stats.<\/li>\n<\/ul>\n<p>Now you can browse, upload, do whatever you want with generated stats. I  generated stats for our <a href=\"http:\/\/overlays.gentoo.org\/svn\/proj\/java\/projects\/java-config-2\/\">java-config-2 project<\/a>. The sample StatSVN output can be viewed at <a href=\"http:\/\/dev.gentoo.org\/~serkan\/statsvn-java-config-2\/\">http:\/\/dev.gentoo.org\/~serkan\/statsvn-java-config-2\/<\/a>. Also Jeremy generated CVS stats for gentoo-x86\/sys-apps which can be viewed at <a href=\"http:\/\/dev.gentoo.org\/~darkside\/stats\/statcvs-sys-apps\/\">http:\/\/dev.gentoo.org\/~darkside\/stats\/statcvs-sys-apps\/<\/a>.<\/p>\n<p><b><u>Further Reading:<\/u><\/b> You can read the following manuals for detailed information.<\/p>\n<ul>\n<li><b>StatCVS manual:<\/b> <a href=\"http:\/\/statcvs.sourceforge.net\/manual.html\">http:\/\/statcvs.sourceforge.net\/manual.html<\/a><\/li>\n<li><b>StatSVN manual:<\/b> <a href=\"http:\/\/wiki.statsvn.org\/User%20Manual.ashx\">http:\/\/wiki.statsvn.org\/User%20Manual.ashx<\/a><\/li>\n<\/ul>\n<p><b>WARNING: Please do not run <i>cvs log<\/i> on cvs.gentoo.org. Use rsync to mirror the portage tree from <a href=\"http:\/\/anonvcs.gentoo.org\/\">AnonCVS<\/a> provided by infra and run cvs log on the local mirror.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are 2 tools for generating repository statistics for source trees controlled with CVS and SVN. Both tools can generate stats for subtrees. Here&#8217;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 > &hellip; <a href=\"https:\/\/blogs.gentoo.org\/serkan\/2009\/02\/11\/statcvs_and_statsvn\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">StatCVS and StatSVN<\/span><\/a><\/p>\n","protected":false},"author":71,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,4],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts\/11\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}