.am SS .. RCSINTRO - Online Linux Manual PageSection : 1
Updated : 1993/11/03
Source : GNU

NAMErcsintro − introduction to RCS commands

DESCRIPTIONThe Revision Control System (\*r) manages multiple revisions of files. \*r automates the storing, retrieval, logging, identification, and merging of revisions. \*r is useful for text that is revised frequently, for example programs, documentation, graphics, papers, and form letters.
The basic user interface is extremely simple. The novice only needs to learn two commands: ci(1) and co(1). ci, short for check in, deposits the contents of a file into an archival file called an \*r file. An \*r file contains all revisions of a particular file. co, short for check out, retrieves revisions from an \*r file.
Functions of \*r
• Store and retrieve multiple revisions of text. \*r saves all old revisions in a space efficient way. Changes no longer destroy the original, because the previous revisions remain accessible. Revisions can be retrieved according to ranges of revision numbers, symbolic names, dates, authors, and states. • Maintain a complete history of changes. \*r logs all changes automatically. Besides the text of each revision, \*r stores the author, the date and time of check-in, and a log message summarizing the change. The logging makes it easy to find out what happened to a module, without having to compare source listings or having to track down colleagues. • Resolve access conflicts. When two or more programmers wish to modify the same revision, \*r alerts the programmers and prevents one modification from corrupting the other. • Maintain a tree of revisions. \*r can maintain separate lines of development for each module. It stores a tree structure that represents the ancestral relationships among revisions. • Merge revisions and resolve conflicts. Two separate lines of development of a module can be coalesced by merging. If the revisions to be merged affect the same sections of code, \*r alerts the user about the overlapping changes. • Control releases and configurations. Revisions can be assigned symbolic names and marked as released, stable, experimental, etc. With these facilities, configurations of modules can be described simply and directly. • Automatically identify each revision with name, revision number, creation time, author, etc. The identification is like a stamp that can be embedded at an appropriate place in the text of a revision. The identification makes it simple to determine which revisions of which modules make up a given configuration. • Minimize secondary storage. \*r needs little extra space for the revisions (only the differences). If intermediate revisions are deleted, the corresponding deltas are compressed accordingly.
Getting Started with \*rSuppose you have a file f.c that you wish to put under control of \*r. If you have not already done so, make an \*r directory with the command
mkdir RCS" Then invoke the check-in command ci f.c" This command creates an \*r file in the RCS directory, stores f.c into it as revision 1.1, and deletes f.c. It also asks you for a description. The description should be a synopsis of the contents of the file. All later check-in commands will ask you for a log entry, which should summarize the changes that you made. Files in the \*r directory are called \*r files; the others are called working files. To get back the working file f.c in the previous example, use the check-out command co f.c" This command extracts the latest revision from the \*r file and writes it into f.c. If you want to edit f.c, you must lock it as you check it out with the command co −l f.c" You can now edit f.c. Suppose after some editing you want to know what changes that you have made. The command rcsdiff f.c" tells you the difference between the most recently checked-in version and the working file. You can check the file back in by invoking ci f.c" This increments the revision number properly. If ci complains with the message ci error: no lock set by your name then you have tried to check in a file even though you did not lock it when you checked it out. Of course, it is too late now to do the check-out with locking, because another check-out would overwrite your modifications. Instead, invoke rcs −l f.c" This command will lock the latest revision for you, unless somebody else got ahead of you already. In this case, you'll have to negotiate with that person. Locking assures that you, and only you, can check in the next update, and avoids nasty problems if several people work on the same file. Even if a revision is locked, it can still be checked out for reading, compiling, etc. All that locking prevents is a check-in" by anybody but the locker. If your \*r file is private, i.e., if you are the only person who is going to deposit revisions into it, strict locking is not needed and you can turn it off. If strict locking is turned off, the owner of the \*r file need not have a lock for check-in; all others still do. Turning strict locking off and on is done with the commands rcs −U f.c and rcs −L f.c If you don't want to clutter your working directory with \*r files, create a subdirectory called RCS in your working directory, and move all your \*r files there. \*r commands will look first into that directory to find needed files. All the commands discussed above will still work, without any modification. (Actually, pairs of \*r and working files can be specified in three ways: (a) both are given, (b) only the working file is given, (c) only the \*r file is given. Both \*r and working files may have arbitrary path prefixes; \*r commands pair them up intelligently.) To avoid the deletion of the working file during check-in (in case you want to continue editing or compiling), invoke ci −l f.c or ci −u f.c These commands check in f.c as usual, but perform an implicit check-out. The first form also locks the checked in revision, the second one doesn't. Thus, these options save you one check-out operation. The first form is useful if you want to continue editing, the second one if you just want to read the file. Both update the identification markers in your working file (see below). You can give ci the number you want assigned to a checked in revision. Assume all your revisions were numbered 1.1, 1.2, 1.3, etc., and you would like to start release 2. The command ci −r2 f.c or ci −r2.1 f.c assigns the number 2.1 to the new revision. From then on, ci will number the subsequent revisions with 2.2, 2.3, etc. The corresponding co commands co −r2 f.c and co −r2.1 f.c retrieve the latest revision numbered 2.x and the revision 2.1, respectively. co without a revision number selects the latest revision on the trunk, i.e. the highest revision with a number consisting of two fields. Numbers with more than two fields are needed for branches. For example, to start a branch at revision 1.3, invoke ci −r1.3.1 f.c" This command starts a branch numbered 1 at revision 1.3, and assigns the number 1.3.1.1 to the new revision. For more information about branches, see rcsfile(5).
Automatic Identification\*r can put special strings for identification into your source and object code. To obtain such identification, place the marker
$​Id$" into your text, for instance inside a comment. \*r will replace this marker with a string of the form $​Id: filename revision date time author state $ With such a marker on the first page of each module, you can always see with which revision you are working. \*r keeps the markers up to date automatically. To propagate the markers into your object code, simply put them into literal character strings. In C, this is done as follows: static char rcsid[] = ​"$​Id$​"; The command ident extracts such markers from any file, even object code and dumps. Thus, ident lets you find out which revisions of which modules were used in a given program. You may also find it useful to put the marker $​Log$ into your text, inside a comment. This marker accumulates the log messages that are requested during check-in. Thus, you can maintain the complete history of your file directly inside it. There are several additional identification markers; see co(1) for details.
IDENTIFICATIONAuthor: Walter F. Tichy.
Manual Page Revision: 5.3; Release Date: 1993/11/03.
Copyright © 1982, 1988, 1989 Walter F. Tichy.
Copyright © 1990, 1991, 1992, 1993 Paul Eggert.

SEE ALSOci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1)
Walter F. Tichy, \*r\*-A System for Version Control, Software\*-Practice & Experience" 15, 7 (July 1985), 637-654.
0
Johanes Gumabo
Data Size   :   20,222 byte
man-rcsintro.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 173,505
Visitor ID   :     :  
Visitor IP   :   3.144.95.167   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|rcsintro.1|19|am|.am SS )         (parse_manual_page_|249|rcsintro.1|21|.|.. )         (rof_escape_sequence|91|rcsintro.1|26|\*r) manages multiple revisions of files. |The Revision Control System (\*r) manages multiple revisions of files. )         (rof_escape_sequence|91|rcsintro.1|27|\*r automates the storing, retrieval, logging, identification, and merging |\*r automates the storing, retrieval, logging, identification, and merging )         (rof_escape_sequence|91|rcsintro.1|28|\*r is useful for text that is revised frequently, for example |of revisions. \*r is useful for text that is revised frequently, for example )         (rof_escape_sequence|91|rcsintro.1|38|\*r file. An \*r file |file into an archival file called an \*r file. An \*r file )         (rof_escape_sequence|91|rcsintro.1|41|\*r file. |short for \*(lqcheck out\*(rq, retrieves revisions from an \*r file. )         (rof_escape_sequence|91|rcsintro.1|42|\*r" |.SS "Functions of \*r" )         (rof_escape_sequence|91|rcsintro.1|44|\*r saves all old |Store and retrieve multiple revisions of text. \*r saves all old )         (rof_escape_sequence|91|rcsintro.1|52|\*r logs all changes automatically. |\*r logs all changes automatically. )         (rof_escape_sequence|91|rcsintro.1|53|\*r stores the author, the date and time of |Besides the text of each revision, \*r stores the author, the date and time of )         (rof_escape_sequence|91|rcsintro.1|60|\*r alerts the programmers and prevents one |modify the same revision, \*r alerts the programmers and prevents one )         (rof_escape_sequence|91|rcsintro.1|63|\*r can maintain separate lines of development |Maintain a tree of revisions. \*r can maintain separate lines of development )         (rof_escape_sequence|91|rcsintro.1|69|\*r alerts the |If the revisions to be merged affect the same sections of code, \*r alerts the )         (rof_escape_sequence|91|rcsintro.1|85|\*r needs little extra space for |Minimize secondary storage. \*r needs little extra space for )         (rof_escape_sequence|91|rcsintro.1|88|\*r" |.SS "Getting Started with \*r" )         (rof_escape_sequence|91|rcsintro.1|91|\*r. |that you wish to put under control of \*r. )         (rof_escape_sequence|91|rcsintro.1|92|\*r directory with the command |If you have not already done so, make an \*r directory with the command )         (rof_escape_sequence|91|rcsintro.1|100|\*r file in the |This command creates an \*r file in the )         (rof_escape_sequence|91|rcsintro.1|113|\*r directory are called \*r files; |Files in the \*r directory are called \*r files; )         (rof_escape_sequence|91|rcsintro.1|122|\*r file |This command extracts the latest revision from the \*r file )         (rof_escape_sequence|91|rcsintro.1|174|\*r file is private, i.e., if you are the only person who is going |If your \*r file is private, i.e., if you are the only person who is going )         (rof_escape_sequence|91|rcsintro.1|178|\*r file need not have a lock for check-in; all others |the owner of the \*r file need not have a lock for check-in; all others )         (rof_escape_sequence|91|rcsintro.1|183|\*r files, create |If you don't want to clutter your working directory with \*r files, create )         (rof_escape_sequence|91|rcsintro.1|186|\*r |in your working directory, and move all your \*r )         (rof_escape_sequence|91|rcsintro.1|187|\*r commands will look first into that directory to find |files there. \*r commands will look first into that directory to find )         (rof_escape_sequence|91|rcsintro.1|190|\*r and working files can be specified in three ways: |(Actually, pairs of \*r and working files can be specified in three ways: )         (rof_escape_sequence|91|rcsintro.1|192|\*r file is given. Both \*r and working files may have arbitrary path prefixes; |\*r file is given. Both \*r and working files may have arbitrary path prefixes; )         (rof_escape_sequence|91|rcsintro.1|193|\*r commands pair them up intelligently.) |\*r commands pair them up intelligently.) )         (rof_escape_sequence|91|rcsintro.1|248|\*r can put special strings for identification into your source and object |\*r can put special strings for identification into your source and object )         (rof_escape_sequence|91|rcsintro.1|254|\*r will replace this marker with a string of the form |\*r will replace this marker with a string of the form )         (rof_escape_sequence|91|rcsintro.1|260|\*r keeps the markers up to date automatically. |\*r keeps the markers up to date automatically. )         (rof_escape_sequence|91|rcsintro.1|298|\*r\*-A System for Version Control, |\*r\*-A System for Version Control, )         (rof_escape_sequence|91|rcsintro.1|299|\*-Practice & Experience" |.I "Software\*-Practice & Experience" )