[Top][All Lists]

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

Re: adding directories and files directly under /cvs

From: David Berry
Subject: Re: adding directories and files directly under /cvs
Date: Fri, 22 Jun 2001 08:49:00 -0500


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
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     sswg        7680 Jun 21 15:42 esproc
drwxrwsr-x   7 tung     sswg         512 Jun 21 14:55 sta
drwxrwsr-x   2 tung     sswg        6656 Jun 21 14:40 utl
drwxrwsr-x   2 tung     sswg        2560 Jun 21 14:22 include
drwxrwsr-x   2 tung     sswg        1536 Jun 21 10:52 cmui
drwxrwsr-x   2 berry    sswg        1024 Jun 21 10:41 cm
drwxrwsr-x   2 tung     sswg        1024 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 ..

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?

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

reply via email to

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