Skip to content

Instantly share code, notes, and snippets.

@icco
Created July 2, 2010 22:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icco/461991 to your computer and use it in GitHub Desktop.
Save icco/461991 to your computer and use it in GitHub Desktop.
svn-uberblame
#!/bin/bash
# originally from http://stackoverflow.com/questions/3143575/list-the-files-i-own-in-subversion/3144017
set -e
for file in `svn ls -R`; do
if [ -f $file ]; then
owner=`svn blame $file | tr -s " " " " | cut -d" " -f3 | sort | uniq -c | sort -nr | head -1 | tr -s " " " " | cut -d" " -f3`
if [ $owner ]; then
echo $file $owner
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment