Get a Bulleted List of SVN Commits By a User for a Specifc Day (Daily Work Log)

  1. Replace USERNAME with the desired svn username
  2. Replace the first YYYY-MM-DD with the date you want to get the log (this starts at the midnight event that starts this date)
  3. Replace the second YYYY-MM-DD with the date after you want to get the log (this will end the log scan on midnight of the previous day)
svn log -r '{YYYY-MM-DD}:{YYYY-MM-DD}' | sed -n '1p; 2,/^-/d; /USERNAME/,/^-/p' | grep -E -v '^(r[0-9]|---|$)' | sed 's/^/* /g'

Sample Output

Example, if I want the log for all commits by 'antic' for December 10, 2010, I would put {2010-12-10}:{2010-12-11}

$ svn log -r '{2010-12-10}:{2010-12-11}' | sed -n '1p; 2,/^-/d; /antic/,/^-/p' | grep -E -v '^(r[0-9]|---|$)' | sed 's/^/* /g'
* Commit message 5
* Commit message 4
* Commit message 3

Vote and comment on commandlinefu.com