RE: adding directories and files directly under /cvs
At a guess ... A) Naming a directory "cvs" is bad if you want it under CVS control. B) The error message indicates that you did not do a "cvs init" and hence the missing admin files. G -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Berry Sent: Friday, June 22, 2001 6:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: adding directories and files directly under /cvs Larry, I have made an observation that needs clarification. Since I was unable to "add" a new program to the cvs directory, as I showed in my previous email, I tried to import it. The cvs import command does indeed allow me to create a new project under cvs. When do I use the import command instead of the add command? It looks to me that if a new project is to be input into CVS, the add command can be used if the project will exist within a directory that has already been created within CVS, and the import command must be used for a totally new directory structure. For example: My CVS directory looks like: cato:/cm/cvs% ls -alt total 104 drwxrwsrwx 12 mike sswg 512 Jun 22 08:00 . drwxrwsr-x 424 tung sswg7680 Jun 21 15:42 esproc drwxrwsr-x 7 tung sswg 512 Jun 21 14:55 sta drwxrwsr-x 2 tung sswg6656 Jun 21 14:40 utl drwxrwsr-x 2 tung sswg2560 Jun 21 14:22 include drwxrwsr-x 2 tung sswg1536 Jun 21 10:52 cmui drwxrwsr-x 2 berrysswg1024 Jun 21 10:41 cm drwxrwsr-x 2 tung sswg1024 Jun 19 09:55 CVSROOT drwxrwsr-x 8 mike sswg 512 Jun 18 10:20 Alien drwxrwsr-x 4 tung sswg 512 Jun 13 13:14 doc drwxrwsr-x 6 sys sys 512 May 22 16:49 .. cato:/cm/cvs% If I want to add a new source set the the esproc directory, all I need to do is to add the directory and add the files, then commit them. But if I want to create a uiutl directory under /cm/cvs with all the code to uiutl, I need to import it? Is this observation correct? Regards, David Berry David Berry wrote: > Larry, > > I am able to add and commit directories > 1 level under the /cvs directory with no > problem. However, when I try to add a > directory directly below the /cvs directory, > I get : > > The directory uiutl exists in scripts and > has all the code within. > cato:/users/721/berry/src/scripts% cvs add uiutl > cvs add: in directory .: > cvs [add aborted]: *PANIC* administration files missing > > Try again: cvs is located in /cm/cvs > > cato:/users/721/berry/src/scripts% cvs add /cm/cvs/uiutl > cvs add: in directory /cm/cvs: > cvs [add aborted]: there is no version here; do 'cvs checkout' first > cato:/users/721/berry/src/scripts% > > My desire is to create /cvs/uiutl directory > and fill the uiutl directory with all the files > associated with the uiutl program. Can you tell > me what I am doing wrong? > > I am able to add new directories within existing > directories under /cvs: > > Create my local directory! > cato:/users/721/berry/src/scripts/esproc% mkdir newproc > > Add it to the Repository! > cato:/users/721/berry/src/scripts/esproc% cvs add newproc > Directory /cm/cvs/esproc/newproc added to the repository > cato:/users/721/berry/src/scripts/esproc% > Success!!! > > Regards, > David Berry ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: adding directories and files directly under /cvs
David Berry writes: > > When do I use the import command instead of the > add command? You use add to add new files or directories within an existing, checked out, working directory. You use import to import a directory tree that is not part of a working directory directly into the repository. When you do add, the files and directories are already part of the working directory. When you do import, you have to do a separate checkout or update to get the files in a working directory. -Larry Jones You're going to be pretty lonely in the nursing home. -- Calvin ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: adding directories and files directly under /cvs
Larry, I have made an observation that needs clarification. Since I was unable to "add" a new program to the cvs directory, as I showed in my previous email, I tried to import it. The cvs import command does indeed allow me to create a new project under cvs. When do I use the import command instead of the add command? It looks to me that if a new project is to be input into CVS, the add command can be used if the project will exist within a directory that has already been created within CVS, and the import command must be used for a totally new directory structure. For example: My CVS directory looks like: cato:/cm/cvs% ls -alt total 104 drwxrwsrwx 12 mike sswg 512 Jun 22 08:00 . drwxrwsr-x 424 tung sswg7680 Jun 21 15:42 esproc drwxrwsr-x 7 tung sswg 512 Jun 21 14:55 sta drwxrwsr-x 2 tung sswg6656 Jun 21 14:40 utl drwxrwsr-x 2 tung sswg2560 Jun 21 14:22 include drwxrwsr-x 2 tung sswg1536 Jun 21 10:52 cmui drwxrwsr-x 2 berrysswg1024 Jun 21 10:41 cm drwxrwsr-x 2 tung sswg1024 Jun 19 09:55 CVSROOT drwxrwsr-x 8 mike sswg 512 Jun 18 10:20 Alien drwxrwsr-x 4 tung sswg 512 Jun 13 13:14 doc drwxrwsr-x 6 sys sys 512 May 22 16:49 .. cato:/cm/cvs% If I want to add a new source set the the esproc directory, all I need to do is to add the directory and add the files, then commit them. But if I want to create a uiutl directory under /cm/cvs with all the code to uiutl, I need to import it? Is this observation correct? Regards, David Berry David Berry wrote: > Larry, > > I am able to add and commit directories > 1 level under the /cvs directory with no > problem. However, when I try to add a > directory directly below the /cvs directory, > I get : > > The directory uiutl exists in scripts and > has all the code within. > cato:/users/721/berry/src/scripts% cvs add uiutl > cvs add: in directory .: > cvs [add aborted]: *PANIC* administration files missing > > Try again: cvs is located in /cm/cvs > > cato:/users/721/berry/src/scripts% cvs add /cm/cvs/uiutl > cvs add: in directory /cm/cvs: > cvs [add aborted]: there is no version here; do 'cvs checkout' first > cato:/users/721/berry/src/scripts% > > My desire is to create /cvs/uiutl directory > and fill the uiutl directory with all the files > associated with the uiutl program. Can you tell > me what I am doing wrong? > > I am able to add new directories within existing > directories under /cvs: > > Create my local directory! > cato:/users/721/berry/src/scripts/esproc% mkdir newproc > > Add it to the Repository! > cato:/users/721/berry/src/scripts/esproc% cvs add newproc > Directory /cm/cvs/esproc/newproc added to the repository > cato:/users/721/berry/src/scripts/esproc% > Success!!! > > Regards, > David Berry ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs