Svn: how to remove all deleted files from repository ?
Posted
by
Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2011-01-05T20:21:27Z
Indexed on
2011/01/05
20:53 UTC
Read the original article
Hit count: 159
svn
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
© Stack Overflow or respective owner