<p>I'm looking for any tools that can give you code churn metrics (graphs and charts would be even better) for a Subversion repository.</p>

<p>One tool I know of is <a href="http://www.statsvn.org/" rel="noreferrer">statsvn</a> - a Java tool that creates some HTML reports and some code churn metrics.  Statsvn reports the number of lines modified (churned) by user over time, some descriptive stats on LOC per file and folder/subfolder, etc.</p>

<p>I would like to know code churn in order to get a better idea of the state of the project.  Idea behind this inspired by the MS research: <a href="http://research.microsoft.com/research/pubs/view.aspx?type=Publication&amp;id=1359" rel="noreferrer">Use of Relative Code Churn Measures to Predict System Defect Density</a></p>

<p>In a nutshell, the more that source code is churning (changing, whether adding new lines, deleting, changing,etc) the higher the probability that defects are being introduced into the system.  The MS research paper says that the number of defects produced can be predicted based on a number of relative code churn measures.</p>

<p>I wanted to know if there are any others that are maybe open source, extensible, etc.</p>

[{'answer_id': 54425, 'author': 'John Boker', 'author_id': 2847, 'author_profile': 'https://Stackoverflow.com/users/2847', 'pm_score': 0, 'selected': False, 'text': "<p>The only one i've ever heard of and used is statsvn, searching google doesnt return many results.</p>\n"}, {'answer_id': 55673, 'author': 'John Meagher', 'author_id': 3535, 'author_profile': 'https://Stackoverflow.com/users/3535', 'pm_score': 4, 'selected': True, 'text': '<p>If you are willing to go the commercial route check out <a href="http://www.atlassian.com/software/fisheye/" rel="noreferrer">FishEye</a> from Atlassian (also see their <a href="http://www.cenqua.com/fisheye/demo" rel="noreferrer">demo site</a> ).  FishEye also supports adding <a href="http://confluence.atlassian.com/display/FISHEYE/Developing+Fisheye+and+Crucible+Plugins" rel="noreferrer">plugins</a> (though this does not appear to be very well supported at this time).  </p>\n'}, {'answer_id': 78183, 'author': 'James A. N. Stauffer', 'author_id': 6770, 'author_profile': 'https://Stackoverflow.com/users/6770', 'pm_score': 0, 'selected': False, 'text': '<p>You can probably use <code>svn blame</code> to get the date each line was changed and then use <code>sed</code> to pull out only the year and month and then use <code>sort</code> and <code>uniq -c</code> to generate a useful report.</p>\n'}, {'answer_id': 548459, 'author': 'Nitin Bhide', 'author_id': 52395, 'author_profile': 'https://Stackoverflow.com/users/52395', 'pm_score': 3, 'selected': False, 'text': '<p>I have written a tool called \'<a href="http://code.google.com/p/svnplot" rel="noreferrer">svnplot</a>\' (which I admit was inspired by the output of StatSVN). Its written in python and available on Google code. <a href="http://code.google.com/p/svnplot" rel="noreferrer">http://code.google.com/p/svnplot</a>.  You can see the sample output at <a href="http://thinkingcraftsman.in/projects/svnplot/index.htm" rel="noreferrer">http://thinkingcraftsman.in/projects/svnplot/index.htm</a></p>\n\n<p>The details/output are not as elaborate as \'fisheye\'. Basically it converts the Subversion log history into a \'sqlite\' database and then queries sqlite database to generate graphs. You can write your own queries using the created sqlite database.</p>\n\n<p>See if it works for you.</p>\n'}, {'answer_id': 798678, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>The Power Software tool, KEPM, is pretty focused on CHURN these days. JP</p>\n'}, {'answer_id': 1136063, 'author': 'Mark Kofman', 'author_id': 137557, 'author_profile': 'https://Stackoverflow.com/users/137557', 'pm_score': -1, 'selected': False, 'text': '<p>try <a href="http://programeter.edicypages.com/" rel="nofollow noreferrer">programeter</a> which analyses Subversion and many other dev. tools. </p>\n'}, {'answer_id': 26757439, 'author': 'Martin Moene', 'author_id': 437272, 'author_profile': 'https://Stackoverflow.com/users/437272', 'pm_score': 2, 'selected': False, 'text': '<p>See <a href="https://github.com/martinmoene/svn-churn" rel="nofollow">svn-churn</a>, a simple Python script to determine file churn and fix count of a Subversion repository. </p>\n'}]
['https://Stackoverflow.com/questions/54318', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1341/']