Skip to content

Instantly share code, notes, and snippets.

@ashfame
Created February 24, 2012 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashfame/1902021 to your computer and use it in GitHub Desktop.
Save ashfame/1902021 to your computer and use it in GitHub Desktop.
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