#!/bin/sh # Found in many places on the Internet, the real author is unknown... # http://stackoverflow.com/questions/955976/ever-need-to-parse-the-svn-log-for-files-committed-by-a-particular-user-since-a # http://stackoverflow.com/questions/14071404/using-awk-to-svn-log-to-get-a-list-of-file-committed-by-a-specific-user if [ -z "$1" ]; then echo "usage: $0 startrev" echo echo "example 1: $0 2012-08-01" echo "example 2: $0 r20394" exit fi username=$(id -un) if [ "x${1#r}" = "x$1" ]; then startrev="{$1}" else startrev=$1 fi svn log -v -r"$startrev":HEAD | awk --sandbox '/^r[0-9]+ / {user=$3} /./ {if (user=="'"$username"'") {print}}' | grep -E "^ M|^ G|^ A|^ D|^ C|^ U" | awk --sandbox '{print $2}' | sort | uniq