Bug 58347 - !!!Unable to checkout files from HEAD via CVS !!!
Summary: !!!Unable to checkout files from HEAD via CVS !!!
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 15:02 EDT by Philippe Ombredanne CLA
Modified: 2004-04-13 15:29 EDT (History)
0 users

See Also:


Attachments
Screen Shots for files/import and team/share (40.54 KB, application/pdf)
2004-04-13 15:27 EDT, Philippe Ombredanne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Ombredanne CLA 2004-04-13 15:02:31 EDT
IT IS NOT POSSIBLE to checkout code from a CVS repository when there is no
module but just files that are under the root.
You can see them under head, but they cannot be checked out.
A good example is the following CVSROOT
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jpcap
They have a bunch of directories and a couple files (ie build.xml).
I cannot checkout the stuff from Eclipse, but I can check out the suff from a
command line CVS using "." as a module name, which works both on Linux/unix and
NT. The cvs command is that case would be : cvs co -d "test" -P -A "." to
checkout all of the HEAD stuff under the test directory.
I reckon that it is probably not the most common use of CVS, but nevertheless,
it is supported by CVS , and NOT by the Eclipse CVS client.
-- 
Cheers
Philippe

philippe ombredanne | nexB - Open IT Asset Management 
1 650 799 0949 | pombredanne at nexb.com 
http://www.nexb.com
Comment 1 Philippe Ombredanne CLA 2004-04-13 15:25:55 EDT
Well, I have been able to get something but through a very circumvoluted way.
Here is the sequence of steps I wnet through
- checkout the code using a command line CVS client with "." as a module name
under a directory called foo.
- Eclipse: create an empty Java project called bar.
- Eclipse: make a file system import of the foo directory in the bar project
- Eclipse: select the project and "team/share project"  it. 
- Eclipse: Eclipse recognize that there is some CVS info available from the
command line checkout and a pop-up comes with the message "Project is already
configured with CVS repository information." offering to create and reuse the
pserver used for the command line checkout.
- Eclipse: select the project then "team/update". The project is updated,
including the files directly under HEAD outside of a folder/module in the CVS tree.
This is really skewed, and there should an option to checkout an individual file
under HEAD, and to checkout everything under HEAD like when you use "." with a
cvs line client.

I have attached a small pdf with screen shots from eclipse for the session.
-- 
Cheers
Philippe

philippe ombredanne | nexB - Open IT Asset Management 
1 650 799 0949 | pombredanne at nexb.com 
http://www.nexb.com
Comment 2 Philippe Ombredanne CLA 2004-04-13 15:27:44 EDT
Created attachment 9447 [details]
Screen Shots for files/import and team/share
Comment 3 Jean-Michel Lemieux CLA 2004-04-13 15:29:24 EDT
Try the latest integration build. The checkout wizard (available from the CVS
perspectives toolbar) allows you to enter '.'. I just tried it and it seems to
work well.