« Back to blog

Removing CVS directories from Subversion

It’s time for a cleanout. A couple of servers here have Drupal 7 installed from CVS. As CVS is no longer used by Drupal, it’s time to clean those unneeded directories out of SVN with a mass SVN delete command

svn delete `find . -type d | grep 'CVS$'`

The command in the backticks finds everything of type directory, and then it’s passed (piped) to grep which filters the results. The $ at the end of the CVS tells us to only show root CVS directories, nothing inside them.

Posted March 3, 2011