Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 110261 - [CVS] Cannot .cvsignore a directory that has previously been in repository
Summary: [CVS] Cannot .cvsignore a directory that has previously been in repository
Status: RESOLVED DUPLICATE of bug 79869
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 18:06 EDT by Kenny MacLeod CLA
Modified: 2005-09-22 08:45 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenny MacLeod CLA 2005-09-21 18:06:43 EDT
Once a directory has been committed to CVS, it cannot be later removed and added
to .cvsignore.

To replicate problem:

1) Take a project that has already been shared in CVS
2) Add a new directory to the project, add a dummy file to that directory, and
commit both.
3) Delete the directory from the project, and commit
4) The CVS/Entries file in the parent directory still shows a reference to the
deleted directory.

The effect of which is:

5) Create a new directory of the same name in the same place
6) Eclipse recognises it as an existing shared directory.

Using Eclipse alone, it is not possible to delete a directory that has been
previously committed to CVS, and then have Eclipse forget it was ever shared. 
You need to go in and manually fudge the CVS/Entries file.

Furthermore, if you try to add the directory the parent's .cvsignore file,
Eclipse ignores *that*, since the CVS/Entries file will always contain the
phantom directory.

For a more complete description:

http://dev.eclipse.org/mhonarc/lists/platform-cvs-dev/msg00285.html
Comment 1 Michael Valenta CLA 2005-09-22 08:45:28 EDT
This is due to CVS limitations and the desire in Eclipse to have the 
synchronize view. Basically, for the synchronize view to work properly, we 
need to keep track of all the directories in a project, even if they are 
empty. Bug 37864 is also related (as stated in a later post to the thread you 
mentioned).

*** This bug has been marked as a duplicate of 79869 ***