How to filter Subversion logs by date and author
I keep forgetting this snippet, and then spend hours re-discovering/re-inventing it. So for the record: Here’s a bit of magic to let you filter your Subversion (SVN) logs by date and author:
svn log -vr {20091014}:"HEAD" | sed -n "/nealenssle/,/-----$/ p"
I use it in a bash shell script function that I’ve got in my .bash_profile script like so:
function svnlog {
svn log -vr {$1}:"HEAD" | sed -n "/$2/,/-----$/ p"
}
And then call it like so:
svnlog 20091014 nealenssle
Happy spelunking!
Posted: October 14th, 2009 by Neal Enssle
Tags: code, programming, scm, subversion, tools
No Comments »