How to remove all deleted files from repository?
I just tried this and it works perfectly.
$ svn st | grep '^!' | awk '{print $2}' | xargs svn delete --force
D groups.pl
D textblock.pl
Do your files have spaces in their names?
WAIT A SECOND!! I see the problem. You have:
svn --force delete
and not:
svn delete --force
The --force
is a parameter of the delete
command and not the svn
command.
I have found another solution, too.
svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm %
I have seen it on http://donunix.blogspot.de/2009/02/svn-remove-all-deleted-files.html