Svn: how to remove all deleted files from repository ?
- by Patrick
I have a script in which I add all new files before to commit my working copy to my repository with this line:
svn status | grep ^\? | awk '{print $2}' | xargs svn add
I now want to add a line that delete from repository all deleted files in my working copy. In other terms, I cannot specify them one by one, and I need to detect them with svn status and then automatically remove them. However the line doesn't work.
svn status | grep ^\! | awk '{print $2}' | xargs svn --force delete
As you can see I've replaced
"?" with "!" and
"add" with "--force delete"
Could you tell me why it doesn't work ?
ps. I know it is a risky procedure. I've already discussed all about it.
thanks
thanks