Re: RCS question

2003-10-26 Thread Jez Hancock
On Sun, Oct 26, 2003 at 06:17:18PM -0500, 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?
If you did this an rcs file would be created in the *same* directory as
the C files.  You probably want to create an RCS folder:

/home/apierre/Prog/C/Joy_of_C/chp_1/RCS/

I don't know how you'd make ci/co use a *specific* directory each time -
that's more the way cvs works than rcs I believe.  Actually - reading the
manpage for ci it appears you can do what you're suggesting, but it
sounds fiddly.  See the section 'FILE NAMING' in the 'ci' manpage for
more details.

The way I usually use it is to keep track of configuration file changes.
So for example to keep track of httpd.conf file changes, I created a
folder /usr/local/etc/apache/RCS.  Then whenever I change the httpd.conf
file /usr/local/etc/apache/httpd.conf, I run 'ci httpd.conf' 
in /usr/local/etc/apache and the changes are commited to the rcs file 
in /usr/local/etc/apache/RCS/.

I then issue 'co -l httpd.conf' to check the file back out again and
lock it to use it.

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RCS question

2003-10-26 Thread Scott W
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RCS question

2003-10-26 Thread Alden Louis-Pierre
   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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RCS question

2003-10-26 Thread Ryan Thompson
Ryan Thompson wrote to Jez Hancock:

 To both of you, ci -l is your friend.

and, of course, ci -u does the same thing, but leaves the revision
unlocked. You'll use both.

- Ryan

-- 
  Ryan Thompson [EMAIL PROTECTED]

  SaskNow Technologies - http://www.sasknow.com
  901-1st Avenue North - Saskatoon, SK - S7K 1Y4

Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669 (877-SASKNOW) North America

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RCS question

2003-10-26 Thread Alden Louis-Pierre
   Thanks everyone.  I now understand RCS, so for each directory I plan 
to co/ci there should be an RCS directory. 

Thank You
Alden Louis-Pierre
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]