Functionally RCS and SCCS (up to revision ) are similar, with SCCS now having RCS uses fewer intermediate files while applying a delta to a history file . Reviewer: John R. Levine. SCCS and RCS are two classic sets of Unix tools. They both do the same thing, namely, track changes to text files by keeping. A version control file contains the original file (called a g-file in SCCS) together with all the changes, or deltas, that have been applied to it. Each delta is.

Author: Faujora Mooguran
Country: Costa Rica
Language: English (Spanish)
Genre: Love
Published (Last): 7 March 2018
Pages: 38
PDF File Size: 4.49 Mb
ePub File Size: 13.53 Mb
ISBN: 867-9-87506-206-6
Downloads: 57525
Price: Free* [*Free Regsitration Required]
Uploader: Mazujinn

If the g-file is present in your working directory, sccs unedit removes it and performs a get command on the s-file; if no g-file is present, no get command is executed. Gets a specified version of an s-file.

In this case you don’t have the option of forcing the check-out to proceed, applting co doesn’t ask whether you want to. Before describing the basic RCS commands, let’s define some terms and take a look at command-line conventions, especially how you specify files to the system. It’s well worth spending thirty seconds to document what you have done now, rather than spending hours later trying to work out when you made a fateful change This message, of course, doesn’t really indicate an “error”–just that the check-out was aborted as you requested.

If you want to see what commands rcsclean would execute, if given a certain command line, you can use the -n flag. So to summarize, a command line looks like. Reports on files being edited and the names of the users editing them.

This screws up processing and hurts the entire group. This can be handy when you’re checking in more than one file and want all of the files to have the same commentary.


Sets the nonstrict file locking mode. Such a mapper is fundamental to systems like TCCS. This simplicity is a strong point of the system. Differs from sccs create in that znd -i does not rename the g-file or fetch a copy of the s-file; the g-file is left untouched in your directory.

Causes the delta command to create a null delta in any releases that are skipped when a delta is made in a new release. Without it, the command can’t tell which pending update to the archive file you eccs to cancel.

The creation time of a delta, in the form hh: Like most programs with a UNIX heritage, all RCS commands expect a command line that consists of a command name followed by one or more file names.

Then rcsclean will echo the commands it normally would run but will not actually execute them.

6 Revision Control: Managing Source Files with RCS or SCCS

This invocation of the rcsdiff 1 command specifies one option -rwhich has 1. If a writable file already exists with the same name as the working file that co is trying to create, the command will warn you of the file’s presence and ask you whether you want to overwrite it.

Again, you can enter as much text as you like, and you terminate your entry with a rfs on a line by itself. If someone else already held the lock to revision 1. The current line number in the file, svcs to identify messages output by a program. A “stand-alone” command-line interface that is compatible with RCS is provided, as well as a graphical interface.


Compare the output from this command to that from the last co we looked at.

Applying RCS and SCCS

Combines two or more consecutive deltas of an s-file into a single delta. The rcsdiff command will output a line indicating what revision it is reading from the RCS file, then it will run the diff 1 program, comparing the revision it read against the current working file. Compares two versions of the s-file. For example, if xform. If given, options change how the command works. Sometimes, you may prefer to give revision commentary directly on the ci command line.

With -pco will “print” the checked-out revision to its standard output, rather than putting it into a working file.

So either of these command sequences scccs be equivalent to the original ci command we showed above: Displays the revision histories of the named file or files, then displays the SCCS file, with ID information added to the beginning of each line. Note that the output from rcsclean -n looks exactly like the normal output, so be careful not to confuse a -n run with the real McCoy.

Revision Control: Managing Source Files with RCS or SCCS

The sccs edit command, which duplicates the function of sccs get -eis the usual way to regenerate a g-file for editing. Both of these options are simply shorthand for doing a separate co following the check-in. Both systems provide a simple way to store and retrieve all changes made to a file.