grep and svn rm and svn add files

Posted: July 8th, 2010 | Author: admin | Filed under: Code | No Comments »

Very handy for auto-commits:

To remove files that went away and are identified by a ‘!’, use:
svn status | grep ^\! | cut -c8- | xargs svn rm
To add files svn doesn’t know about:
svn status | grep ^\? | cut -c8- | xargs svn add


SVN Relocate Command

Posted: June 5th, 2009 | Author: Troy | Filed under: Code, Misc | Tags: | No Comments »
svn switch --relocate http://old_svnserver/svn/repo/trunk http://new_svnserver/svn/repo/trunk .