How to remove a whole tree from CVS?
Sometimes CVS is very nasty when operating. For example, when you want
to remove a whole tree (including zillion sub-directories and files) you
may have to enter commit log (at least, confirm) for every directory, if
you are going to do a cvs ci in the top level directory.
It is possible to solve this problem with simple Unix® commands:
Prepare our file list:
find . -type f | grep -v /CVS > ../listRemove the files:
rm `cat ../list`Remove these files in repository:
cvs rm `cat ../list`Remove all files by using
cvs ci:cat ../list | xargs cvs ci -m "Remove files from repository."
在线阅读本文并参与讨论 delphij's Chaos blog.delphij.net/posts/2004/09/how-to-remove-a/