Table of Contents
*Tags*: cmd:ci
ci -u -m"change message" files ci -l -m"." files
# multi-line comment ci -m"`$echo '- change1\n- change2...'`"
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.
*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
rcs -i -t-'HOPE Slides' thesis.s.tex
then,
ci -l -m'- APICS presentation version' thesis.s.tex
$ 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 =============================================================================
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.
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
![]() | |
!! |
$ ci -l -t-'ver test' -r1.01 vt RCS/vt,v <-- vt initial revision: 1.1 done
— nok to initial revision to 1.01
![]() | |
!! |
$ ci -t-'ver test' -l1.01 vt RCS/vt,v <-- vt initial revision: 1.1 done
— nok either
and rcs doesn't have a option to change the revision #.
documented on: 2000.01.05 Wed 13:29:34