Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have a very large SVN repository (working copy of several gb) that has just reached its 20,000th checkin. As a bit of an interesting statistic for our team (and to partly celebrate our 20,000th checkin) I'd like to make a graph showing which folders in the repository have had the most checkins.

Is there any way to do this? We mostly use integrated SVN clients in our IDE and Tortoise SVN, but I'm willing to get other tools for this one-off thing.

share|improve this question
add comment

closed as off topic by Yannis Rizos, blueberryfields, Mark Trapp Jan 12 '12 at 11:49

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted

Run

svn log <directory> | grep '^r' | wc -l

To run this for every single folder inside a working copy and get a CSV as the output:

find <directory> ( ! -regex './..' ) -type d -exec /bin/bash -v -c "echo -n \"{},\";svn log \"{}\"|grep '^r'| wc -l" > ./SVNLog.txt \;

share|improve this answer
    
@Farseeker: nice edit - you deserve at least half the credit for this answer –  kevin cline Nov 25 '11 at 4:29
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.