Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 51818

Summary: [Repo View] Cannot add new directory at CVS root level
Product: [Eclipse Project] Platform Reporter: Marian Grigoras <mgrig>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug
Attachments:
Description Flags
Add new folder in the CVS none

Description Marian Grigoras CLA 2004-02-12 04:56:27 EST
I cannot add a new directory in CVS at root level. Adding works fine at sub-
root levels!

Steps:
1) Make a checkout of an existing CVS repository.
2) To the existing local version add a new package/directory AT THE ROOT LEVEL. 
Note that the new directory is empty!
3) Select "Team->Add to Version Control"
4) First, I get a normal dialog window:
title: "Add Ignored Resource?"
content: "You have explicitly asked to version control one or more resources 
that otherwise would have been ignored. Continue?"
5) Choose "Yes" here and the next thing is the following ERROR WINDOW:
title: "Error occurred during Add"
content: "<proj_name>: cvs [add aborted]: cannot add to
<CVS_path>/CVSROOT/Emptydir"
Replace <proj_name> and <CVS_path> with your own values.

CVS server runs on Solaris. I have the necessary rights to write into it.

Eclipse 3.0 Build 200311211210 on Win2000. I did not test on other OS.

Workaround: use the CVS command line or some other CVS tool to add the new root 
directory. After that Eclipse will handle it just fine.
Comment 1 Michael Valenta CLA 2004-03-08 15:20:00 EST
What do you mean by root directory? Do you mean one that is created at the 
root level of the repository. For example, if my repo path is /home/cvsrepo,
ae you trying to ad a directory /home/cvsrepo/newfolder? If so, how did you 
perform step 1) in your example?
Comment 2 Marian Grigoras CLA 2004-03-09 04:37:57 EST
Yes, this is what I mean: repo path is /home/cvsrepo and I want to add
/home/cvsrepo/newfolder.
In my step 1 I checked out all existing directories in /home/cvsrepo (like
/home/cvsrepo/lib, /home/cvsrepo/doc, etc). Of course I could not check out
/home/cvsrepo/newfolder, as it was not yet there. At this point, I created in
the Java perspective the newfolder (parallel to lib, doc, etc) and tried to add
it to the repository. At this point I got the error message.
Comment 3 Michael Valenta CLA 2004-03-09 20:24:01 EST
This is supported in a round-about way. You can create the newfolder as a 
project and perform a Team>Share project. This will create the remote folder. 
You can then check it out into your main project.
Comment 4 Ert Dredge CLA 2004-03-31 16:02:47 EST
I hit this also, it's rather surprising:

I have a project that has some subdirectories from one CVS repository, some from another CVS 
repository, so I use "Check out into existing project."

When you look at how it's checked out, though, all the */CVS/Repository files are correct *except* the 
root one, which is set to "CVSROOT/Emptydir".  It prevents you from adding anything to the root 
directory.
Comment 5 Ilia Barski CLA 2005-11-05 13:10:16 EST
Created attachment 29379 [details]
Add new folder in the CVS

I have got the same problem with CVS server on linux and eclipse Version: 3.2.0
Build id: I20051102-1600. 
So what I have done:

- some CVS module "wdkWEB-INF" was checked out as a folder on the top eclipse
project level;
- a new folder "folder2" was created on the top eclipse project level;
- right click on the "folder2" -- "team" -- "Add to Version Control"
- a warning was shown "You have explicitly asked ... would have been ignored.
Continue ?" --> "OK"
- some msg was shown for a millisecond
- the .log file had:
!SESSION 2005-11-05 17:42:16.406
-----------------------------------------------
eclipse.buildId=I20051102-1600
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86 -clean

!ENTRY org.eclipse.team.cvs.core 4 -10 2005-11-05 18:47:27.890
!MESSAGE The server reported an error while performing the "cvs add" command.
!SUBENTRY 1 org.eclipse.team.cvs.core 4 -14 2005-11-05 18:47:27.890
!MESSAGE test: cvs [server aborted]: cannot add to /cvsroot/<cvs project
name>/CVSROOT/Emptydir

The same CVS folder creation by use of a server CVS client succeeded, namely:
-- mkdir test
-- cd test
-- cvs checkout .
-- mkdir folder2
-- cvs add folder2
Directory /cvsroot/<cvs project name>/folder2 added to the repository

It appears so, as if 
- either the eclipse project top level would be corresponded by default to 
<CVS project>/CVSROOT/Emptydir/ but not to the <CVS project>/ as it has to be;
- or cvs add command was issued in the actual directory <CVS
project>/CVSROOT/Emptydir/ but not in <CVS project>/ as it has to be;
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:16:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 7 Eclipse Genie CLA 2022-02-16 01:21:38 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.