Ever need to parse svn logs for files committed by a specific user from a specific date?

If so, the next single-line resource using awk might provide a useful template.

svn log -v -r{2009-05-21}:HEAD | awk '/^r[0-9]+ / {user=$3} /yms_web/ {if (user=="george") {print $2}}' | sort | uniq 
+6
svn logging awk
source share
2 answers

You can add this to the list of useful command line svn examples .

+2
source share

Or use the XML output (-xml) of the svn log and the Xslt processor.

+2
source share

All Articles