Is there a svn command to tell the repository to automatically “rm” files in repo that exist in the repo but not in my dir?
a bit explanation:
i have my own project hosted on google code. In my local dir, i’ve deleted many files. Now, i want to commit. However, i don’t remember which files i’ve removed. It seems quite cumbersome to find out (by e.g. backup my dir, update the dir, and diff the dirs, then generate a file list to “svn rm f1 f2 …”)
i know that in svn that proper way to remove a file is to first call “svn rm fname”, which will delete the file for you. But long story short… i have the above situation.
I just tried the following on my Mac OS X system and it seemed to work:
This doesn’t commit anything, just issues the
svn rmcommand(s) for you. Hope this helps!EDIT: This does not correctly handle files with spaces in the name (e.g. “My text file.txt”), but it should work for whitespace-free file names.