Thursday, January 14, 2010

Svn remove already locally deleted files

Svn remove already locally deleted files
svn st | grep ! | sed 's/! //g' | xargs svn rm

Svn add already locally added files
svn st | grep ? | sed 's/? //g' | xargs svn add

Svn cp file from old revision or already previous wrong deleted file
svn cp http://svn.exoplatform.org/svnroot/exoplatform/bla-bla/RepositoryService.java@4723 http://svn.exoplatform.org/svnroot/exoplatform/bla-bla

3 comments:

n8v said...

Nice. Might want to escape the !s though :D

Geewiz said...

You are a hero. I was already using "find" to go recursively and pipe that to delete a bunch of files with a pattern in their name which was impossible with just "svn rm"

Geewiz said...

You are a hero. I was already using "find" to go recursively and pipe that to delete a bunch of files with a pattern in their name which was impossible with just "svn rm"