home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!dcs.ed.ac.uk!sct
- From: sct@dcs.ed.ac.uk (Stephen Tweedie)
- Newsgroups: comp.unix.questions,cs.questions
- Subject: Re: RCS usage
- Message-ID: <SCT.92Dec15160056@skye.dcs.ed.ac.uk>
- Date: 15 Dec 92 16:00:56 GMT
- References: <Bz0K5r.5K5@dcs.ed.ac.uk> <1992Dec10.095436.15672@ericsson.se>
- Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
- Organization: University of Edinburgh Dept. of Computer Science, Scotland
- Lines: 46
- In-Reply-To: etxmesa@eos.ericsson.se's message of 10 Dec 92 09:54:36 GMT
-
- In article <1992Dec10.095436.15672@ericsson.se>, etxmesa@eos.ericsson.se (Michael Salmon) writes:
- > In article <Bz0K5r.5K5@dcs.ed.ac.uk>
- > tk@dcs.ed.ac.uk (Tommy Kelly) writes:
- > |> I've just started using RCS and I'd appreciate any input on the following:
- > |>
- > |> Suppose I have five source files, A, B, C, D and E which make
- > |> up an application. As I develop the application, I want to keep track
- > |> of which revisions of each file combine to create a particular version
- > |> of my application.
- > |>
- > |> At the moment I am ...
- > |> Question: Is there an easier way to do this, perhaps using RCS itself?
-
- Check out cvs. It is a front end for rcs which is designed to do for
- groups of files what rcs does for individual files, and it can keep
- track of and merge separate sets of updates to any of its known
- versions.
-
- cvs operates out of a single source repository, where all of the
- central revision information is kept. This means that more than one
- copy of the source (the same or different revisions) can be checked
- out (to different working directories) at any time, and changes to
- any of these working files easily merged into the main repository.
- Once a set of files has been committed to cvs, new files can be added
- to the project as required.
-
- The great beauty of cvs is that the single command "cvs commit",
- issued from the working directory, will commit all alterations to
- cvs-controlled files in that directory to the cvs database as a new
- revision. cvs automatically works out which files have been modified,
- and ignores files which are not part of the repository (such as *.o
- files, executables and backups).
-
- One thing the documentation (in "man cvs") does not tell you is how to
- create the repository in the first place. You need to set up the
- environment variable $CVSROOT to the place you want to keep the CVS
- stuff (~/CVS or ~/.CVS, perhaps), and then cd to ~rcs/cvs-1.3 and
- issue the command "./cvsinit" - all the necessary CVS files and
- directories will be created under $CVSROOT. (You should probably set
- this variable in your .brc file if you will be using cvs frequently).
-
- Cheers,
- Stephen Tweedie.
- ---
- Stephen Tweedie <sct@uk.ac.ed.dcs> (Internet: <sct@dcs.ed.ac.uk>)
- Department of Computer Science, Edinburgh University, Scotland.
-