blob: 8ea489794da78f7b504f750f97224056cabc6c05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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
|