I've often wanted to check out a module, then prune off the directories
and files that
I didn't need.  Until the other day I couldn't figure out a way to do it
entirely with CVS commands.

What I had been doing is deleting the directory that I didn't want, then
manually updating the CVS/Entries file of the parent.  This just seemed
wrong.

The other day I realized that I could use the same mechanism used in the
suggested 'cvs ls' equivalent (cvs rdiff -s -r 0 module).  I could cause
CVS to discard the files I didn't want by specifying a non-existant
revision, and prune empty directories.

cvs update -r 0 -P file-or-directory-to-remove

Hopefully someone else will find this useful.

Shane

Reply via email to