This article's lead section may be too short to adequately summarize the key points.(September 2020) |
Original author(s) | Walter F. Tichy |
---|---|
Developer(s) | GNU Project The OpenBSD project (OpenRCS) |
Initial release | 1982 |
Stable release | 5.10.1 [1] / 2 February 2022 |
Repository | |
Written in | C |
Operating system | Unix-like, V [2] |
Type | Version control |
License | GPL-3.0-or-later [a] [3] 2-clause BSD license (OpenRCS) |
Website | www |
Revision Control System (RCS) is an early implementation of a version control system (VCS). It is a set of UNIX commands that allow multiple users to develop and maintain program code or documents. With RCS, users can make their own revisions of a document, commit changes, and merge them. RCS was originally developed for programs but is also useful for text documents or configuration files that are frequently revised. [4]
RCS was first released in 1982 [4] by Walter F. Tichy at Purdue University. It was an alternative tool to the then-popular Source Code Control System (SCCS) which was nearly the first version control software tool (developed in 1972 by early Unix developers). [5] RCS is currently maintained by the GNU Project. [6]
An innovation in RCS is the adoption of reverse deltas. Instead of storing every revision in a file like SCCS does with interleaved deltas, RCS stores a set of edit instructions to go back to an earlier version of the file. Tichy claims that it is faster for most cases because the recent revisions are used more often. [4]
Initially (through version 3, which was distributed in 4.3BSD), its license prohibited redistribution without written permission from Walter Tichy: [7]
Copyright (C) 1982 by Walter F. Tichy [...] All rights reserved. No part of this software may be sold or distributed in any form or by any means without the prior written permission of the author.
A READ_ME file accompanied some versions of RCS which further restricted distribution, e.g., in 4.3BSD-Reno. [8]
Ca. 1989, the RCS license was altered to something similar to the contemporary BSD licenses, as seen by comments in the source code. [9]
Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by Walter Tichy.
RCS 4.3, released 26 July 1990, was distributed "under license by the Free Software Foundation", under the terms of the GPL. [10] [ full citation needed ]
OpenBSD provides a different implementation called OpenRCS, which is BSD-licensed. [11]
RCS works well with standalone files and supports multi-file projects but, by modern standards, that support is limited: RCS can assemble the versions of multiple files into a single release (via "symbolic names") [12] but it lacks support for atomic commit across those files. Although it provides branching, the version syntax is cumbersome.[ citation needed ] Instead of using branches, many teams just use the built-in locking mechanism and work on a single head branch. [4]
RCS revolves around the usage of "revision groups" or sets of files that have been checked-in via the co
(checkout) and ci
(check-in) commands. By default, a checked-in file is removed and replaced with a ",v" file (so foo.rb when checked in becomes foo.rb,v) which can then be checked out by anyone with access to the revision group. RCS files (again, files with the extension ",v") reflect the main file with additional metadata on its first lines. Once checked in, RCS stores revisions in a tree structure that can be followed so that a user can revert a file to a previous form if necessary. [4]
Notes