svn delete removed files

use an

svn status

it will list changes with the working copy. (deleted files start with a ! )

Then, you can :

svn delete file_to_del1 file_to_del2 etc

and finally commit

You can also write a little snippet to automate this:

svn status | grep '^!' | awk '{print $2}' | xargs svn delete

And eventually add an alias :

alias svn_precommit="svn status | grep '^!' | awk '{print $2}' | xargs svn delete"

If you need to support @ / spaces in file names you need to complicate the script (you should not use those chars in filenames but sometimes thats a decision that has been done by someone else) – you can use this in your .bashrc directly:

svn_prepare_del() {
        svn st | grep '^!' | awk '{$1=""; print " --force \""substr($0,2)"@\"" }' | xargs svn delete
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)