Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SVN commands
# Count no of files in repo
svn info -R --xml file:///path/to/rep | grep kind=\"file\"|wc -l
# SVN command to give commit authors list and save it in author-transform.txt
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt
# SVN Comand to view commits of a particular author
svn log | egrep 'r[0-9]+ \| username \|'
# SVN Comand to view commits of a particular author along with commit message
svn log | sed -n '/USERNAME/,/-----$/ p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.