Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2003 23:01:29 -0500
From:      Scott W <wegster@mindcore.net>
To:        Alden Louis-Pierre <alden.pierre@verizon.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: RCS question
Message-ID:  <3F9C9899.7000200@mindcore.net>
In-Reply-To: <3F9C55FE.9030507@verizon.net>
References:  <3F9C55FE.9030507@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
No- IIRC, the default sis to look for an RCS subdirectory within the 
directory of the original file, failing that, the delta/file will be 
checked in to the local directory.  This is generally 'the right 
behavior,' as RCS doesn't inherently store directory structures, so each 
file is in it's approipriate place in a multi-directory project.

Some examples, starting with directory structure and contents:

/home/projects/foo:
Makefile (Top level Makefile for project)
README
license.gpl
CHANGELOG

/home/projects/foo/include:
mydaemon.h
db_connect.h
myclient.h
foo.h

/home/projects/foo/server:
Makefile
db_connect.c
mydaemon.c

/home/projects/foo/client:
Makefile
myclient.c

If an RCS directory already exists in each directory, the RCS files will 
go in (base directory)/RCS.  If not, they will stay in the directory you 
checked them in from originally (Note- this is _their_ initial 
directory, not your working directory when you do the checkin!)

So the top-level Makefile would become either 
/home/projects/foo/RCS/Makefile,v , or, if the RCS dir didn't already 
exist, /home/projects/foo/Makefile,v

and the myclient.c file on checkin would become:
/home/projects/foo/client/RCS/myclient.c,v , or again if the RCS dir 
didn't already exist, /home/projects/foo/client/myclient.c,v ..

Hope that helps..

Scott

PS- Remember to always at least do a co <filename> after initial 
checkin, as ci <file> without other params creates the RCS/delta file, 
but will not leave the original filename in place...

Alden Louis-Pierre wrote:

>
>    I'm learning how to use the RCS utility.  I never knew such a tool 
> existed.  I understand the commands and concept,
> but as always I need some enlightment with the following question:
>
> /home/apierre/RCS - my RCS directory
>
> /home/apierre/Prog/C/Joy_of_C/chp_1 - the location of my C files from 
> a book I'm learning.
>
> If I were to ci(check in) my files from were my C files is located, 
> would my revisions be placed in my RCS directory?
>
> Thank You
> Alden Louis-Pierre
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F9C9899.7000200>