From owner-freebsd-questions@FreeBSD.ORG Sun Oct 26 19:59:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E178916A4B3 for ; Sun, 26 Oct 2003 19:59:19 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5AC443FA3 for ; Sun, 26 Oct 2003 19:59:16 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD 4.8) id 1ADyXA-0008dG-Bv for freebsd-questions@freebsd.org; Mon, 27 Oct 2003 03:59:12 +0000 Date: Mon, 27 Oct 2003 03:59:12 +0000 From: Jez Hancock To: freebsd-questions@freebsd.org Message-ID: <20031027035912.GA30749@users.munk.nu> Mail-Followup-To: freebsd-questions@freebsd.org References: <3F9C55FE.9030507@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F9C55FE.9030507@verizon.net> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: RCS question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 03:59:20 -0000 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/