Synopsis


Table of Contents

cmd:rcs 
Usage 
Create an empty initial revision 
Info 
Source 
Setting the initial rcs version 
urls 

cmd:rcs 

*Tags*: cmd:ci

Usage 

the initial rcs version 

ci -u -t-'File Description' files

later versions 

ci -u -m"change message" files
ci -l -m"." files
# multi-line comment
ci -m"`$echo '- change1\n- change2...'`"

check in then check out 

ci -l

check in one group of files, do not initialize un-required version controlls 

ci -u -j -m'- batch ci' $ThisKindOfFiles
-j[rev]
       just  checkin  and do not initialize; report an error if the RCS
       file does not already exist.

undo checkouts 

rcs -u files...

Change version message 

rcs -mrev:msg
rcs -m1.2:"String Attr works" DbKnn.java

Change description message 

rcs -t-'new description'

remove version 

*Tags*: remove latest version

fv=ace.news
# backup current edition, then
co -f -u $fv

— have to unlock it first if it is locked.

rcs -o1.3 $fv

— have to specify the version # even for the lastest one

co -l $fv

— will only change back when co

Abort checkouts 

Revert to last version.

co -f -u $fl

Create an empty initial revision 

rcs -i -t-'HOPE Slides' thesis.s.tex

then,

ci -l -m'- APICS presentation version' thesis.s.tex

Trying History 

$ rcs -i -t-'HOPE Slides' thesis.s.tex
RCS file: RCS/thesis.s.tex,v
done
$ rlog !$
rlog thesis.s.tex
RCS file: RCS/thesis.s.tex,v
Working file: thesis.s.tex
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
HOPE Slides
=============================================================================
$ rcs -l thesis.s.tex
RCS file: RCS/thesis.s.tex,v
rcs: RCS/thesis.s.tex,v: warning: can't lock an empty tree
done
$ ci -l -m-'APICS presentation version' !$
ci -l -m-'APICS presentation version' thesis.s.tex
RCS/thesis.s.tex,v  <--  thesis.s.tex
initial revision: 1.1
done
$ rlog thesis.s.tex
RCS file: RCS/thesis.s.tex,v
Working file: thesis.s.tex
head: 1.1
branch:
locks: strict
        tong: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;     selected revisions: 1
description:
HOPE Slides
----------------------------
revision 1.1    locked by: tong;
date: 2001/10/24 02:35:57;  author: tong;  state: Exp;
-APICS presentation version
=============================================================================

Info 

Description

RCS (Revision Control System) is a set of commands for managing multiple revisions of files. RCS automates the storing, retrieval, logging, identification, and merging of revisions. RCS is useful for text that is revised frequently; for example programs, documentation, graphics, papers, and form letters.

-j[rev]
       just checkin and do not initialize; report an error if the RCS
       file does not already exist.

Source 

ftp://gatekeeper.dec.com/pub/GNU/rcs/ (USA)

latest version (verified from ftp://ftp.gnu.org/ls-lrR.txt.gz)
rcs-5.7.tar.gz. . . . . . . . .   [Jun 15 1995 ]    276K

Setting the initial rcs version 

[Tip]

!!

$ ci -l -t-'ver test' -r1.01 vt
RCS/vt,v  <--  vt
initial revision: 1.1
done

— nok to initial revision to 1.01

[Tip]

!!

$ ci -t-'ver test' -l1.01 vt
RCS/vt,v  <--  vt
initial revision: 1.1
done

— nok either

[Tip]

!!

and rcs doesn't have a option to change the revision #.

documented on: 2000.01.05 Wed 13:29:34