summaryrefslogtreecommitdiff
path: root/svn_my_stat2_detail.sh
blob: e624941e8b7bfc71338a989dede6203f78b66733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#!/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: $0 2012-08-01"
    exit
fi

username=$(id -un)
startrev=$1

svn log -v -r"{$startrev}":HEAD | awk --sandbox '/^r[0-9]+ / {user=$3} /./ {if (user=="'"$username"'") {print}}'