November 21, 2007
Subversion Log Filtering

So, Annabel was complaining that she couldn't see a log of just her Subversion revisions along with details of the files that have changed from the command line. Shock horror - something you can do from Tortoise that you can't easily do from the shell!

(If you don't care about seeing a list of the files that have been changed, you can just do svn log | grep -A2 sbrunning | less, but adding the -v option turns the output to gibberish.)

Clearly I wasn't going to to let that stand, so I knocked up a very quick script. Then proceeded to over-engineer the snot out of it. (In my own time I must add.)

You can filter by author or by checkin message, with regexps. You can also reverse the output and see the latest checkin last, which is handy if you are only want to see the most recent checkins and don't want to pipe the output to less.

Get it here: svnlog (syntax highlighed - loving that Django TextMate theme) or svnlog (text). Requires Python 2.5. Works on Mac & Linux, probably on Windows too if you give it a .py suffix.

Posted to Software development by Simon Brunning at November 21, 2007 06:05 PM
Comments

the briefest smoke test seems to indicate that it works on WinXP.

Posted by: jay on November 21, 2007 07:09 PM

Cool, thanks.

Posted by: Simon on November 21, 2007 08:03 PM

You may try --xml switch to svn log - it's safer (e.g. when someone commits a message containing a long run of dashes, as my coworker did)

Posted by: janek on November 22, 2007 10:23 AM

You could always just switch back to Windows and use Tortoise ;-)

Posted by: Andy Todd on November 22, 2007 10:27 AM
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?