In perforce you can issue a ‘sync to none’ command to remove files from the client, but leave them untouched in the depot (or repository in svn lingo).
p4 sync …#none
Is there a similar command in svn?
Edit:
Thanks to those that have answered so far.
To clarify:
I don’t want to use rm -rf on the directory, since it will remove all files, even those that are local only. I also don’t want to have to go through by hand deleting individual files which are on the client and in the repository.
The ‘p4 sync …#none’ command allows me to remove files from the client, which are in the depot/repository, and leaves local only files alone.
With a small set of files, this is not a big deal, but with numerous files it is painful to do by hand.
So you basically want to remove all files that are versioned and unmodified?
You could cook up a script that iterates through all files and calls “svn status” on them, removing the files where “svn status” gives empty output…
EDIT: a naïve python script to remove files that are unmodified. Keeps unversioned and local-modified files… this is slow, would be better to issue a “svn stat -v” and parse that. The script only removes files, it doesn’t touch folders.