Last active
December 8, 2017 09:38
-
-
Save 166MMX/fc8bc5376ba92c03908a0e6724e615f6 to your computer and use it in GitHub Desktop.
list all svn authors of an svn repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list all commit authors | |
SVN_URL=""; svn log --quiet --xml "$SVN_URL" | xmlstarlet select --template --value-of '/log/logentry/author/text()' | sort | uniq | |
# list first and last commit times of given author | |
SVN_AUTHOR="" SVN_URL=""; svn log --quiet "$SVN_URL" | awk 'BEGIN {FS=" \\| "} $2 == "'"$SVN_AUTHOR"'" {print $3}' | sed -e 1b -e '$!d' | |
# list commit count of given author | |
SVN_AUTHOR="" SVN_URL=""; svn log --quiet "$SVN_URL" | awk 'BEGIN {FS=" \\| "} $2 == "'"$SVN_AUTHOR"'" {print}' | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment