Skip to content

Instantly share code, notes, and snippets.

@mathewpeterson
Created July 15, 2011 19:21
Show Gist options
  • Save mathewpeterson/1085352 to your computer and use it in GitHub Desktop.
Save mathewpeterson/1085352 to your computer and use it in GitHub Desktop.
Get a list of list of files commited to svn's trunk branch by a particular author from a particular revision.
#!/bin/bash
SVN_USERNAME=$1
SVN_REVISION=$2
svn log -v -r $SVN_REVISION:HEAD | awk "/^r[0-9]+ / {user=\$3} /trunk/ {if (user==\"$SVN_USERNAME\") {print \$2}}" | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment