Created
February 24, 2012 16:58
-
-
Save ashfame/1902021 to your computer and use it in GitHub Desktop.
SVN commands
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
# 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