September 19th, 2008
Deleting Unversioned SVN Files
Here’s a silly bash trick that will delete all unversioned SVN files
svn st | grep "^?" | sed s/?[[:space:]]*// | xargs rm -rf |
Use with care, obviously. If there’s a more concise method, please let me know.
And here’s how you might use similar commands to apply fmresolve to all conflicted files, and then resolve them.
for f in $(svn st | grep "^C" | sed s/C[[:space:]]*//); do fmresolve $f; done svn st | grep "^C" | sed s/C[[:space:]]*// | xargs svn resolved |