Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 28639 - Cannot add remote folder - CVS Update Broken
Summary: Cannot add remote folder - CVS Update Broken
Status: RESOLVED DUPLICATE of bug 28551
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Valenta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-18 13:18 EST by IH CLA
Modified: 2003-01-06 10:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description IH CLA 2002-12-18 13:18:07 EST
This is in M3

I recently ran an update on my code and compiled.  The compiled failed because
update failed to grab a set of folders.  The cvs console reported no errors.  I
went into the cvs repository view selected the missing folders - one by one -
right clicked and said check out into and selected the appropriate hiearchy. 
There were four folders that were not retreived, checking out the last three
worked but attempting the operation on the last folder resulted in this error
"Can not add remote folder '1/2/3/4/5/6/7/8/9/10' to project 'projectx' as
'1/2/3/4/5/6/7/8/9/10' because local folder '10' is already mapped to that folder.  

I closed eclipse and tried again, same thing.  If this error happens during
update I would expect the cvs console to report some kind of error.  I have
tried refreshing, deleteing the folder and getting it again.  Nothing seems to
work.  I guess I have to check out somewhere and manually move the files into
the correct spot using a file manager.

cvs version
  Concurrent Versions System (CVS) 1.11 (client/server)
ok (took 0:00.270)
Error: Host 'hostx.com' is running unsupported CVS version 1.11. Although most
functionality works, use version 1.11.1p1 or later for full support.
Comment 1 IH CLA 2002-12-18 14:13:42 EST
The only way that I could get it to work was to create the folder and add it to
version control and then select update.  There also seemed to be another folder
which didn't get added and wasn't giving this error.   
Comment 2 IH CLA 2002-12-18 14:31:13 EST
So apparently the problem is that cvs is issuing this command:

cvs update -P "sourcecode"

where as it should be doing

cvs update -D -P "sourcecode"

Any idea how I instruct it to do that?  There doesn't seem to be options for this.
Comment 3 Michael Valenta CLA 2002-12-18 14:43:45 EST
There is an option in the CVS project properties to enable/disable "fetch 
absent directories". Make sure this option is checked. There seems to be a bug 
somewhere that toggles this setting. I happened to me when I changed the 
sharing of a project. Did you change the sharing for your project?
Comment 4 IH CLA 2002-12-18 15:58:46 EST
Thanks, it was unchecked!   I know I didn't toggle that option box.   I haven't
changed the sharing on my project the only thing that I can think of is maybe
installing solar eclipse.  

Hmmm...  I had someone else install solar eclipse but no repro.  

Comment 5 Michael Valenta CLA 2003-01-06 10:40:57 EST

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