jump to navigation

Subversion batch commands November 3, 2008

Posted by maxmil in : Subversion , trackback

A few useful svn batch commands.

1) Add multiple files

svn st | grep "^?" | awk '{ print $2}' | while read f; do svn add $f; done

2) Revert multiple files

svn st | grep "^M" | awk '{ print $2}' | while read f; do svn revert $f; done

3) Delete multiple missing files

svn st | grep "^\!" | awk '{ print $2}' | while read f; do svn delete $f; done

Comments»

no comments yet - be the first?