Subversion bulk add or remove
A couple of one liners to easily bulk add or remove files in subversion:
svn st | grep ^? | sed 's/? //' | xargs svn add
svn st | grep ^! | sed 's/? //' | xargs svn rm
svn st | grep ^! | sed 's/! //' | xargs svn rm
They can even handle files with spaces.
This entry was posted
on Friday, December 11th, 2009 at 11:24 am and is filed under Tips & Tricks.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Thanks for this, was very very handy
No problem. The bulk add and bulk remove should work for most cases, but their are some random edge cases where they trip up on files with lots of spaces. I have not been able to track down why, but when I do, I will update the snippets.