[NCLUG] cvs question

J. Paul Reed preed at sigkill.com
Thu Nov 29 19:09:51 MST 2001


On Thu, 29 Nov 2001, mike cullerton wrote:

> hey folks,
>
>  i don't know much about cvs. i have the Per Cederqvist manual in pdf

Very good... my advice: print that sucker out and annotate it.

My copy from Netscape is all dog eared and marked on... but it has info
like I'm about to tell you.

> however, when i update the other set of code that was already checked out
> before the change, the new files and directories don't show up. a cvs
> diff thinks everything there is up to date.
>
> should cvs create the new directories? do i need to? what cool cvs
> commands don't i know about that would help me here  :)

CVS should... you shouldn't... the magical command you're looking for is
'-d', specifically, 'cvs update -d -P'.

The -d creates new directories, "like checkout does" and the -P prunes
empty directories, if you have any. Both flags will keep your local tree
all tidy and neat.

Remember, though... directories in CVS are forever... that is, the
repository will always have the directories you make, so be careful about
creating those... files, OTOH, and relatively easy to move around.

Later,
Paul
   ---------------------------------------------------------------------
   J. Paul Reed               preed at sigkill.com || web.sigkill.com/preed
   It's amazing what a little brain damage will do for your credibility.
                                              -- Leonard Shelby, Memento




More information about the NCLUG mailing list