What the heck have I done last week?

Every Wednesday we’ve got team meeting and I need to find out what the heck I was doing last week :). SVN Repository logs are very helpfull whith that concern. Here a little bash script that extracts the log entries of a given user for the last 7 days…

#!/bin/bash

REPOS="TetraTrans Libraries IDDS IDDS2010"
MYSVNUSER="meckschlager"

for repo in $REPOS
do
	svn log $repo -r {`date --date="7 days ago" +%Y-%m-%d`}:{`date +%Y-%m-%d`} | sed -n "/"$MYSVNUSER"/,/-----$/ p"
done

Leave a Reply

Your email address will not be published. Required fields are marked *