800 Part VI . Programming in Linux Source
800 Part VI . Programming in Linux Source Code Control Version control is an automated process for keeping track of and managing changes made to source code files. Why bother? Because: . One day you will make that one fatal edit to a source file, delete its predecessor, and forget exactly which line or lines of code you fixed . Simultaneously keeping track of the current release, the next release, and eight bug fixes manually will become mind-numbing and confusing . Frantically searching for the backup tape because one of your colleagues overwrote a source file for the fifth time will drive you over the edge . One day, over your morning cappuccino, you will say to yourself, Version control, it s the Right Thing to Do. Source Code Control Using RCS The Revision Control System (RCS) is a common solution to the version control problem. RCS, which is maintained by the GNU project, is available on almost all UNIX systems, not just on Linux. Two alternatives to RCS are the Concurrent Version System (CVS), which also is maintained by the GNU project, and the Source Code Control System (SCCS), a proprietary product. Before you proceed, however, Table 29-5 lists a few terms that will be used throughout the chapter. Because they are so frequently used, I want to make sure you understand their meaning insofar as RCS and version control in general are concerned. Table 29-5 Version Control Terms Term Description Lock A working file retrieved for editing such that no one else can edit it simultaneously. A working file is locked by the first user against edits by other users. RCS file Any file located in an RCS directory, controlled by RCS, and accessed using RCS commands. An RCS file contains all versions of a particular file. Normally, an RCS file has a ,v extension. Revision A specific, numbered version of a source file. Revisions begin with 1.1 and increase incrementally, unless forced to use a specific revision number. Working One or more files retrieved from the RCS source code repository (the RCS file directory) into the current working directory and available for editing.
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.