2 useful linux command when working with SVN

By: Michael Phipps

6 Jun 2009

2 Useful linux commands for working with svn working copies:

You know when you delete items from your working copy, but forget to use svn rm?  This will sort it out for you:

svn status | grep '\!' | awk '{print $2;}' | xargs svn rm

This one copies working directories to another location without the .svn file

rsync -aC –exclude .svn TARGET FOLDER DESTINATION FOLDER

there’s 2 hypens before exclude.

somehow my working copy svn details got mangled, and I made considerable changes.  using svn cleanup wasn’t sorting it out, so I’m hoping I can use these two commands to fix things up.

On an unrelated topic.  I HATE how long it takes to delete files through the kubuntu gui.  It’s stupid.