info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: really delete a directory


From: Dennis Jones
Subject: Re: really delete a directory
Date: Thu, 21 Jun 2007 16:40:36 GMT

"James. L" <address@hidden> wrote in message 
news:address@hidden
> hi,
>
> i am trying to delete a directory from a project and
> from cvs as well (the dir will be a symbolic link
> instead) however, the directory still remained in our
> cvs and gets pulled in every checkout.
>
> i can think of adding the dir to the .cvsignore. but
> is there a clean way to accomplish it?

Directories are not "versioned" by CVS, so there isn't a whole lot you can 
do with them.  If you delete the directory from the CVS server directly, you 
would never be able to go back to earlier versions of your code (because it 
still contains copies of the old files in a special folder called the 
'atttic').  So you basically have only one option, and that is, assuming 
that the old directory is now empty (all versioned files have been removed 
with 'cvs remove'), when you do an update, use the -P switch (prune empty 
directories).  -P will remove empty directories from your local sandboxes. 
Once removed, you won't see it again, unless you use the -d switch to get 
missing directories.  You can use both -d and -P together ('-dP') to get new 
directories without also getting empty directories.

There might still be a problem with that though.  If you create a symbolic 
link in your local sandbox with the same name as the old folder, I'm not 
sure how CVS will react to that -- it might cause problems with updates. 
Perhaps someone else will chime in here and explain what would happen, or 
offer some other suggestions.

- Dennis 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]