Tag Archives: svn

svn: delete unversioned files

svn status –no-ignore | grep ‘^\?’ | sed ’s/^\? //’ | xargs rm -rf
Thanks to Guy Rutenberg for this, your definitely in my list of top 5 guys.

svn: add all unversioned files

svn add * –-force
svn commit -m “”

svn: remove all .svn folders

find . -name .svn -print0 | xargs -0 rm -rf
This will remove all .svn folders and their contents even in subdirectories. Note if you don’t want the .svn folders it’s better to do an svn export instead of checkout.

svn: list files changed in a revision

svn log -v -r 1178
Where revision number is 1178. For more svn info read the online subversion book.

svn: show commits for particular user

svn log | sed -n ‘/pxg/,/—–$/ p’
The above code will show all entries in the log for the user pete.