info-cvs
[Top][All Lists]
Advanced

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

Re: Add module problem on SLES 9


From: Mark E. Hamilton
Subject: Re: Add module problem on SLES 9
Date: Wed, 06 Jun 2007 15:43:52 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920

Paul,

Paul W wrote:

CVSROOT = /home/cvs/CVSROOT

This is not correct. Your repository should be /home/cvs, not /home/cvs/CVSROOT. A CVS repository is the directory (anywhere) that contains (at a minimum) the CVSROOT sub-directory. It may also contain zero or more project sub-directories (modules) (though zero isn't really useful. ;) )

environment variable has been successfully exported (AFAIK)

If I use this command from the home directory of the project I want in the cvs:

"cvs -d /home/cvs import MyProject MyProject_project ver-1"

I do get the dialog in vi for the message. It then copies lots of files. However, it creates one directory under the /home/cvs directory with lots of sub directories (as per what I want to import) and there are no changes to the files in CVSROOT. After that I seem to have no access to that project through cvs - no checkout.

Sounds like it did the right thing so far. It created a MyProject sub-diretory in the repository you told it to (-d /home/cvs). It shouldn't change anything in the CVSROOT sub-directory (other than perhaps the history file.) Using your example, the repository should look like this:

sahp7635% ls /home/cvs
CVSROOT/  myProject/

Since you specified the repository with the -d option the CVSROOT environment variable wasn't used in the import command. However, if you didn't specify the repository with your checkout command, but used the (incorrect) setting for CVSROOT above, then checkout wouldn't have been able to find your imported product. Either of these should work:

export CVSROOT=/home/cvsroot
cvs checkout MyProject

cvs -d /home/cvsroot checkout MyProject

If I try "cvs -d /home/cvs/CVSROOT import MyProject MyProject_project ver-1" I get "cvs [import aborted]: /home/cvs/CVSROOT/CVSROOT: No such file or directory"

This is also the expected behavior. You told it to import into the repository /home/cvs/CSVSROOT, but (see my first paragraph above) that directory is *not* the repository; it is the CVSOOT module in the /home/cvs repository. So, the 'cvs import' command correctly complained that it couldn't find a repository in the directory you told it to.

Also, the tortoise cvs appears to have no access to the repository for checking out the project module. But then, that might be because the import is not working correctly.

This I'm afraid I can't help you with. I don't use Windoze either, or Tortise. However, it seems to me that your import worked correctly, so perhaps within Tortise you're not correctly telling it where the repository is (/home/cvs).

--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666





reply via email to

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