Revision Control System
{{short description|Version-control system}}
{{Lead too short|date=September 2020}}
{{Infobox software
| name = Revision Control System
| logo =
| screenshot =
| caption =
| author = Walter F. Tichy
| developer = GNU Project
The OpenBSD project (OpenRCS)
| released = {{Start date and age|1982}}
| latest release version = {{wikidata|property|reference|P348}}
| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}
| programming language = C
| operating system = Unix-like, V[http://bitsavers.org/pdf/stanford/v-system/V_6.0refMan_Jun86.pdf V-System 6.0 Reference Manual]
| platform =
| genre = Version control
| license = GPL-3.0-or-later{{efn|GPL-3.0-or-later since 2010-06-24.}}{{cite web|url=https://git.savannah.gnu.org/cgit/rcs.git/commit/COPYING?id=f3cc1b9908300e07b97972785a7b1c946e75ca3c|title=Update license to GPLv3+.|date=2010-06-24}}
2-clause BSD license (OpenRCS)
| website = {{URL|https://www.gnu.org/software/rcs/}}
}}
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.
History
= Development =
RCS was first released in 1982{{cite journal
| last = Tichy | first = Walter
| title = Design, implementation, and evaluation of a Revision Control System
| journal = ICSE '82 Proceedings of the 6th International Conference on Software Engineering
| year = 1982 | pages = 58–67
| url = http://dl.acm.org/citation.cfm?id=807748
| access-date = 12 June 2012
}}
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).{{Cite web|url=http://www.catb.org/~esr/writings/version-control/version-control.html|title=Understanding Version-Control Systems (DRAFT)|first=Eric|last=Raymond|website=www.catb.org|access-date=2017-02-13}} RCS is currently maintained by the GNU Project.{{cite web |title = RCS|website = GNU Project|publisher = Free Software Foundation|access-date = 27 June 2015|url = https://www.gnu.org/software/rcs/|date = 22 January 2015}}
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.
=Legal and licensing=
Initially (through version 3, which was distributed in 4.3BSD), its license prohibited redistribution without written permission from Walter Tichy:{{cite web |url=http://www.retro11.de/ouxr/43bsd/usr/src/new/rcs/src/rcsdiff.c.html |title=4.3BSD - /usr/src/new/rcs/src/rcsdiff.c |publisher=Walter's Retro Computing Corner Documentation |access-date = 15 November 2014 |date=19 May 1986}}
{{quote|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.{{Cite FTP |url=ftp://ftp.mrynet.com/operatingsystems/CSRG/cd2/4.3reno/usr/src/contrib/rcs/src/READ_ME |server=FTP server |url-status=dead |title=CSRG/cd2/4.3reno/usr/src/contrib/rcs/src/READ_ME |date=27 February 1989 }}
Ca. 1989, the RCS license was altered to something similar to the contemporary BSD licenses, as seen by comments in the source code.{{Cite FTP |url=ftp://ftp.mrynet.com/operatingsystems/CSRG/cd2/4.3reno/usr/src/contrib/rcs/src/rcs.c |server=FTP server |url-status=dead |title=CSRG/cd2/4.3reno/usr/src/contrib/rcs/src/rcs.c |date=15 August 1989}}
{{quote|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.RCS 4.3 README file.{{full citation needed|date=January 2022}}
OpenBSD provides a different implementation called OpenRCS, which is BSD-licensed.{{Cite web |title=rcs(1) - OpenBSD manual pages |url=https://man.openbsd.org/rcs.1#HISTORY |access-date=2024-09-05 |website=man.openbsd.org}}
Behavior
= Mode of operation =
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")F. Tichy, Walter: "RCS: A System for Version Control", page 15. Department of Computer Science Technical Reports, Purdue University. Paper 394. https://docs.lib.purdue.edu/cstech/394 but it lacks support for atomic commit across those files. Although it provides branching, the version syntax is cumbersome.{{Citation needed|reason=what's cumbersome about it?!|date=February 2025}} Instead of using branches, many teams just use the built-in locking mechanism and work on a single head branch.
= Usage =
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.
= Advantages =
- Simple structure and easy to work with {{Cite web|url=https://mauriziostorani.wordpress.com/2008/12/10/revision-control-concepts-revision-control-system-rcs-concurrent-versions-system-cvs-and-subversion/|title=Revision control concepts – Revision Control System (RCS), Concurrent Versions System (CVS) and Subversion|date=2008-12-10|website=IT PASSION - "IT professional Blog"|access-date=2017-02-20}}
- Revision saving is not dependent on a central repository
= Disadvantages =
- There is little security, in the sense that the version history can be edited by the users.
- Only one user can work on a file at a time.{{Cite web|url=https://www.ibr.cs.tu-bs.de/kb/revision-control.html|title=Revision Control Systems (RCS, CVS, Subversion, Git)|first=Frank|last=Steinberg|publisher=Technical University of Braunschweig|language=en|access-date=2017-02-20}}
Notes
{{Notelist}}
See also
- Concurrent Versions System (CVS)
- Apache Subversion (SVN)
References
{{Reflist|35em}}
Notes
{{Refbegin}}
- Walter F. Tichy: [http://www.uvm.edu/~ashawley/rcs/tichy1985rcs/html/ RCS--A System for Version Control]. In: Software: Practice and Experience. July 1985. Volume 15. Number 7. Pages 637–654. [http://citeseer.ist.psu.edu/tichy91rc.html References to the paper at CiteSeer] [https://www.cs.purdue.edu/homes/trinkle/RCS/rcs.ps alternate link to paper]
{{Refend}}
Further reading
- Don Bolinger, Tan Bronson, Applying RCS and SCCS - From Source Control to Project Control. O'Reilly, 1995.
- Walter F. Tichy, [https://users.ninthfloor.org/~ashawley/rcs/tichy1985rcs/rcs.html RCS—A System for Version Control], 1985
- Paul Heinlein, [https://www.madboa.com/geek/rcs/ RCS HOWTO], 2004
External links
{{Portal|Free and open-source software}}
- {{Official website}}
- [http://www.cs.purdue.edu/homes/trinkle/RCS/ Original RCS at Purdue]
- {{man|1|rcs|OpenBSD|RCS file management program}}
{{Version control software}}
{{Authority control}}
{{Use dmy dates|date=February 2020}}
Category:Free version control software