Dennis Jones writes:
> 
> I added new directory under a branch like this:
> 
> mkdir new_dir
> cvs add new_dir
> 
> I get the message, 
> 
> "Directory /vol/cvs/fpc/new_dir added to the repository
> --> Using per-directory sticky tag `REL_2_1_A'"
> 
> Okay?  So far, so good.  Now, the directory is empty because I have not
> added any files to it yet, and if a user does this:
> 
> cvs co -rbranch_tag module_name
> 
> he DOES NOT get the new directory.  But, if a user does this:
> 
> cvs co module_name  (note the absence of the branch tag)
> 
> he WILL get the directory even though it was created on the branch, not on
> the main trunk!  This does not seem like correct behavior.  What's going on?

CVS only controls files, not directories, so adding a directory adds it
everywhere, not just on a particular branch.  Checking out a specific
revision with -r automatically sets the -P option as well (prune empty
directories), which is why you don't see it when checking out a branch;
if you specify it when checking out without a specific revision (either
explicitly or via ~/.cvsrc), then you won't get it then, either.

-Larry Jones

I don't think that question was very hypothetical at all. -- Calvin

Reply via email to