Easiest way to delete whole cvs directories

Seems that a mistake was made during a commit and the whole cvs tree was committed as a subdirectory. Is there a quick and easy way to delete this, or do I have to go through each and every file?

[quote]…the whole cvs tree was committed as a subdirectory. Is there a quick and easy way to delete this…?
[/quote]
If I read you right and you want to get rif of the whole subdirectory, just tell everybody to check in, then go to the cvs repository and delete it with ‘rm -r’. The people who had this dir checked out need to get a fresh copy of the parent directory, or delete the corresponding line in CVS/Entries manually.

this is on cvs.dev.java.net though. I don’t have direct access to the repository.

Ok, I was able to delete all the unneeded files, however, I can’t seem to get rid of the empty directories. I’m using winCVS as a client and see no way of deleting directories.

Quirk of CVS, you have to mark a setting somewhere that indicates that empty directories shouldn’t be created.

Incidently, if you’re using WinCVS you might find tortoiseCVS more useful…

Kev

[quote]Ok, I was able to delete all the unneeded files, however, I can’t seem to get rid of the empty directories. I’m using winCVS as a client and see no way of deleting directories.
[/quote]
Nope, you can’t. In CVS directories are eternal, because the versioning only works on the file content level not the directory level. Old directories have to remain around because they hold something that did exist at one point.

But as Kev says, you just tell your client not to check them out. The CVS term is “prune”, and you should find a check-box for it in the Preferences window in WinCVS. This means that any empty directory will be pruned, so if you want one to appear, create a .cvsignore file or something in there.