Get subversion changes for single author
A while ago I was approached by my boss
“I need a list of all the changes a former employee committed into subversion”
“No problem!” I replied with gusto.
It didn’t turn out to be as easy as I thought. I figured there would be an inbuilt subversion command to do this, but after searching the subversion documentation I couldn’t find anything helpful. I then went to plan B which consisted of:
- Download windows sed editor: http://www.cornerstonemag.com/sed/
- export svn log to a txt file
- Run this sed command on txt file (this example was for only author of cpriem): sed -n “/cpriem/,/—–$/ p” svn.txt > cpriemSvn.txt
svn.txt is input file from svn log
cpriemSvn.txt is output file
sed command from: http://svn.haxx.se/users/archive-2007-08/0748.shtml
There may be an easier way with the latest version of subversion so just check out the documentation first.


Leave a Reply