a2p
accept
access
acct
addftinfo
addr2line
adjtime
afmtodit
after
aio_cancel
aio_error
aio_read
aio_return
aio_suspend
aio_waitcomplete
aio_write
alias
aliases
alloc
anvil
append
apply
apropos
ar
array
as
asa
asn1parse
at
atq
atrm
attemptckalloc
attemptckrealloc
authlib
authtest
autopoint
awk
b64decode
b64encode
basename
batch
bc
bdes
bell
bg
bgerror
biff
big5
binary
bind
bindkey
bindtags
bindtextdomain
bio
bitmap
blowfish
bn
bootparams
bootptab
bounce
brandelf
break
breaksw
brk
bsdiff
bsdtar
bsnmpd
bspatch
bthost
btsockstat
buffer
builtin
builtins
bunzip2
button
byacc
bzcat
bzegrep
bzfgrep
bzgrep
bzip2
c2ph
c89
c99
ca
cal
calendar
canvas
cap_mkdb
case
cat
catch
catman
cc
cd
cdcontrol
chdir
checkbutton
checknr
chflags
chfn
chgrp
chio
chkey
chmod
chown
chpass
chroot
chsh
ci
ciphers
ckalloc
ckdist
ckfree
ckrealloc
cksum
cleanup
clear
clipboard
clock
clock_getres
clock_gettime
clock_settime
close
cmp
co
col
colcrt
colldef
colors
colrm
column
comm
command
compile_et
complete
compress
concat
config
connect
console
continue
core
courierlogger
couriertcpd
cp
cpan
cpio
cpp
creat
crl
crontab
crunchgen
crunchide
crypt
crypto
csh
csplit
ctags
ctm
ctm_dequeue
ctm_rmail
ctm_smail
cu
cursor
cursors
cut
cvs
date
dbiprof
dbiproxy
dc
dcgettext
dcngettext
dd
dde
default
defer
deliverquota
des
destroy
devfs
df
dgettext
dgst
dh
dhparam
dialog
diff
diff3
dig
dir
dirent
dirname
dirs
discard
disktab
dngettext
do
domainname
done
dprofpp
dsa
dsaparam
dtmfdecode
du
dup
dup2
eaccess
ec
ecdsa
echo
echotc
ecparam
ed
edit
editrc
ee
egrep
elf
elfdump
elif
else
enc
enc2xs
encoding
end
endif
endsw
engine
enigma
entry
env
envsubst
eof
eqn
err
errno
error
errstr
esac
ethers
euc
eui64
eval
event
evp
ex
exec
execve
exit
expand
export
exports
expr
extattr
extattr_delete_fd
extattr_delete_file
extattr_get_fd
extattr_get_file
extattr_set_fd
extattr_set_file
f77
false
famm
famx
fblocked
fbtab
fc
fchdir
fchflags
fchmod
fchown
fcntl
fconfigure
fcopy
fdescfs
fdformat
fdread
fdwrite
fetch
fg
fgrep
fhopen
fhstat
fhstatfs
fi
file
file2c
fileevent
filename
filetest
find
find2perl
finger
flex
flock
flush
fmt
focus
fold
font
fontedit
for
foreach
fork
format
forward
fpathconf
frame
from
fs
fstab
fstat
fstatfs
fsync
ftp
ftpchroot
ftpusers
ftruncate
futimes
g711conv
gb2312
gb18030
gbk
gcc
gcore
gcov
gdb
gencat
gendsa
genrsa
gensnmptree
getconf
getdents
getdirentries
getdtablesize
getegid
geteuid
getfacl
getfh
getfsstat
getgid
getgroups
getitimer
getlogin
getopt
getopts
getpeername
getpgid
getpgrp
getpid
getppid
getpriority
getresgid
getresuid
getrlimit
getrusage
gets
getsid
getsockname
getsockopt
gettext
gettextize
gettimeofday
gettytab
getuid
glob
global
gmake
goto
gperf
gprof
grab
grep
grid
grn
grodvi
groff
groff_font
groff_out
groff_tmac
grog
grolbp
grolj4
grops
grotty
group
groups
gunzip
gzcat
gzexe
gzip
h2ph
h2xs
hash
hashstat
hd
head
help2man
hesinfo
hexdump
history
host
hostname
hosts
hosts_access
hosts_options
hpftodit
http
hup
i386_get_ioperm
i386_get_ldt
i386_set_ioperm
i386_set_ldt
i386_vm86
iconv
id
ident
idprio
if
ifnames253
ifnames259
image
imapd
incr
indent
indxbib
info
infokey
inode
install
instmodsh
interp
intro
introduction
ioctl
ipcrm
ipcs
ipf
ipftest
ipnat
ippool
ipresend
issetugid
jail
jail_attach
jobid
jobs
join
jot
kbdcontrol
kbdmap
kcon
kdestroy
kdump
kenv
kevent
keycap
keylogin
keylogout
keymap
keysyms
kgdb
kill
killall
killpg
kinit
kldfind
kldfirstmod
kldload
kldnext
kldstat
kldsym
kldunload
klist
kpasswd
kqueue
kse
kse_create
kse_exit
kse_release
kse_switchin
kse_thr_interrupt
kse_wakeup
ktrace
label
labelframe
lam
lappend
last
lastcomm
lastlog
lchflags
lchmod
lchown
ld
ldap
ldapadd
ldapcompare
ldapdelete
ldapmodify
ldapmodrdn
ldappasswd
ldapsearch
ldapwhoami
ldd
leave
less
lesskey
lex
lgetfh
lhash
libnetcfg
library
limit
limits
lindex
link
linprocfs
linsert
lint
lio_listio
list
listbox
listen
lj4_font
lkbib
llength
lmtp
ln
load
loadfont
local
locale
locate
lock
lockf
log
logger
login
logins
logname
logout
look
lookbib
lorder
lower
lp
lpq
lpr
lprm
lptest
lrange
lreplace
ls
lsearch
lseek
lset
lsort
lstat
lsvfs
lutimes
lynx
m4
madvise
magic
mail
maildiracl
maildirkw
maildirmake
mailq
mailx
make
makeinfo
makewhatis
man
manpath
master
mc
mcedit
mcview
md2
md4
md5
mdc2
memory
menu
menubar
menubutton
merge
mesg
message
mincore
minherit
minigzip
mkdep
mkdir
mkfifo
mkimapdcert
mklocale
mknod
mkpop3dcert
mkstr
mktemp
mlock
mlockall
mmap
mmroff
modfind
modfnext
modnext
modstat
moduli
more
motd
mount
mprotect
mptable
msdos
msdosfs
msgattrib
msgcat
msgcmp
msgcomm
msgconv
msgen
msgexec
msgfilter
msgfmt
msggrep
msginit
msgmerge
msgs
msgunfmt
msguniq
mskanji
msql2mysql
msync
mt
munlock
munlockall
munmap
mv
myisamchk
myisamlog
myisampack
mysql
mysqlaccess
mysqladmin
mysqlbinlog
mysqlcheck
mysqld
mysqldump
mysqld_multi
mysqld_safe
mysqlhotcopy
mysqlimport
mysqlshow
mysql_config
mysql_fix_privilege_tables
mysql_zap
namespace
nanosleep
nawk
nc
ncal
ncplist
ncplogin
ncplogout
neqn
netconfig
netgroup
netid
netstat
networks
newaliases
newgrp
nex
nfsstat
nfssvc
ngettext
nice
nl
nm
nmount
nohup
nologin
notify
nroff
nseq
nslookup
ntp_adjtime
ntp_gettime
nvi
nview
objcopy
objdump
objformat
ocsp
od
onintr
open
openssl
opieaccess
opieinfo
opiekey
opiekeys
opiepasswd
option
options
oqmgr
pack
package
packagens
pagesize
palette
pam_auth
panedwindow
parray
passwd
paste
patch
pathchk
pathconf
pawd
pax
pbm
pcre
pcreapi
pcrebuild
pcrecallout
pcrecompat
pcrecpp
pcregrep
pcrematching
pcrepartial
pcrepattern
pcreperform
pcreposix
pcreprecompile
pcresample
pcretest
perl
perl56delta
perl58delta
perl561delta
perl570delta
perl571delta
perl572delta
perl573delta
perl581delta
perl582delta
perl583delta
perl584delta
perl585delta
perl586delta
perl587delta
perl588delta
perl5004delta
perl5005delta
perlaix
perlamiga
perlapi
perlapio
perlapollo
perlartistic
perlbeos
perlbook
perlboot
perlbot
perlbs2000
perlbug
perlcall
perlcc
perlce
perlcheat
perlclib
perlcn
perlcompile
perlcygwin
perldata
perldbmfilter
perldebguts
perldebtut
perldebug
perldelta
perldgux
perldiag
perldoc
perldos
perldsc
perlebcdic
perlembed
perlepoc
perlfaq
perlfaq1
perlfaq2
perlfaq3
perlfaq4
perlfaq5
perlfaq6
perlfaq7
perlfaq8
perlfaq9
perlfilter
perlfork
perlform
perlfreebsd
perlfunc
perlglossary
perlgpl
perlguts
perlhack
perlhist
perlhpux
perlhurd
perlintern
perlintro
perliol
perlipc
perlirix
perlivp
perljp
perlko
perllexwarn
perllinux
perllocale
perllol
perlmachten
perlmacos
perlmacosx
perlmint
perlmod
perlmodinstall
perlmodlib
perlmodstyle
perlmpeix
perlnetware
perlnewmod
perlnumber
perlobj
perlop
perlopenbsd
perlopentut
perlos2
perlos390
perlos400
perlothrtut
perlpacktut
perlplan9
perlpod
perlpodspec
perlport
perlqnx
perlre
perlref
perlreftut
perlrequick
perlreref
perlretut
perlrun
perlsec
perlsolaris
perlstyle
perlsub
perlsyn
perlthrtut
perltie
perltoc
perltodo
perltooc
perltoot
perltrap
perltru64
perltw
perlunicode
perluniintro
perlutil
perluts
perlvar
perlvmesa
perlvms
perlvos
perlwin32
perlxs
perlxstut
perror
pfbtops
pftp
pgrep
phones
photo
pic
pickup
piconv
pid
pipe
pkcs7
pkcs8
pkcs12
pkg_add
pkg_check
pkg_create
pkg_delete
pkg_info
pkg_sign
pkg_version
pkill
pl2pm
place
pod2html
pod2latex
pod2man
pod2text
pod2usage
podchecker
podselect
poll
popd
popup
posix_madvise
postalias
postcat
postconf
postdrop
postfix
postkick
postlock
postlog
postmap
postqueue
postsuper
pr
pread
preadv
printcap
printenv
printf
proc
procfs
profil
protocols
prove
proxymap
ps
psed
psroff
pstruct
ptrace
publickey
pushd
puts
pwd
pwrite
pwritev
qmgr
qmqpd
quota
quotactl
radiobutton
raise
rand
ranlib
rcp
rcs
rcsclean
rcsdiff
rcsfile
rcsfreeze
rcsintro
rcsmerge
read
readelf
readlink
readonly
readv
realpath
reboot
recv
recvfrom
recvmsg
red
ree
refer
regexp
registry
regsub
rehash
remote
rename
repeat
replace
req
reset
resolver
resource
return
rev
revoke
rfcomm_sppd
rfork
rhosts
ripemd
ripemd160
rlog
rlogin
rm
rmd160
rmdir
rpc
rpcgen
rs
rsa
rsautl
rsh
rtld
rtprio
rup
ruptime
rusers
rwall
rwho
s2p
safe
sasl
sasldblistusers2
saslpasswd2
sbrk
scache
scale
scan
sched
sched_getparam
sched_getscheduler
sched_get_priority_max
sched_get_priority_min
sched_rr_get_interval
sched_setparam
sched_setscheduler
sched_yield
scon
scp
script
scrollbar
sdiff
sed
seek
select
selection
semctl
semget
semop
send
sendbug
sendfile
sendmail
sendmsg
sendto
services
sess_id
set
setegid
setenv
seteuid
setfacl
setgid
setgroups
setitimer
setlogin
setpgid
setpgrp
setpriority
setregid
setresgid
setresuid
setreuid
setrlimit
setsid
setsockopt
settc
settimeofday
setty
setuid
setvar
sftp
sh
sha
sha1
sha256
shar
shells
shift
shmat
shmctl
shmdt
shmget
showq
shutdown
sigaction
sigaltstack
sigblock
sigmask
sigpause
sigpending
sigprocmask
sigreturn
sigsetmask
sigstack
sigsuspend
sigvec
sigwait
size
slapadd
slapcat
slapd
slapdn
slapindex
slappasswd
slaptest
sleep
slogin
slurpd
smbutil
smime
smtp
smtpd
socket
socketpair
sockstat
soelim
sort
source
spawn
speed
spinbox
spkac
splain
split
squid
squid_ldap_auth
squid_ldap_group
squid_unix_group
sscop
ssh
sshd_config
ssh_config
stab
startslip
stat
statfs
stop
string
strings
strip
stty
su
subst
sum
suspend
swapoff
swapon
switch
symlink
sync
sysarch
syscall
sysconftool
sysconftoolcheck
systat
s_client
s_server
s_time
tabs
tail
talk
tar
tbl
tclsh
tcltest
tclvars
tcopy
tcpdump
tcpslice
tcsh
tee
tell
telltc
telnet
term
termcap
terminfo
test
texindex
texinfo
text
textdomain
tfmtodit
tftp
then
threads
time
tip
tk
tkerror
tkvars
tkwait
tlsmgr
tmac
top
toplevel
touch
tput
tr
trace
trafshow
trap
troff
true
truncate
truss
tset
tsort
tty
ttys
type
tzfile
ui
ul
ulimit
umask
unalias
uname
uncomplete
uncompress
undelete
unexpand
unhash
unifdef
unifdefall
uniq
units
unknown
unlimit
unlink
unmount
unset
unsetenv
until
unvis
update
uplevel
uptime
upvar
usbhidaction
usbhidctl
users
utf8
utimes
utmp
utrace
uudecode
uuencode
uuidgen
vacation
variable
verify
version
vfork
vgrind
vgrindefs
vi
vidcontrol
vidfont
view
virtual
vis
vt220keys
vwait
w
wait
wait3
wait4
waitpid
wall
wc
wget
what
whatis
where
whereis
which
while
who
whoami
whois
window
winfo
wish
wm
write
writev
wtmp
x509
xargs
xgettext
xmlwf
xstr
xsubpp
yacc
yes
ypcat
ypchfn
ypchpass
ypchsh
ypmatch
yppasswd
ypwhich
yyfix
zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zmore
znew
_exit
__syscall
 
FreeBSD/Linux/UNIX General Commands Manual
Hypertext Man Pages
rcsintro
 
RCSINTRO(1)							   RCSINTRO(1)



NAME
       rcsintro - introduction to RCS commands

DESCRIPTION
       The  Revision Control System (RCS) manages multiple revisions of files.
       RCS automates the  storing,  retrieval,	logging,  identification,  and
       merging	of  revisions.	 RCS  is  useful for text that is revised fre-
       quently, 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 RCS
       file.  An RCS file contains all revisions of a  particular  file.   co,
       short for "check out", retrieves revisions from an RCS file.

   Functions of RCS
       o      Store  and  retrieve  multiple revisions of text.  RCS 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.

       o      Maintain	a  complete  history of changes.  RCS logs all changes
	      automatically.  Besides the text of each	revision,  RCS	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.

       o      Resolve access conflicts.  When two or more programmers wish  to
	      modify  the  same  revision, RCS alerts the programmers and pre-
	      vents one modification from corrupting the other.

       o      Maintain a tree of revisions.  RCS can maintain  separate  lines
	      of development for each module.  It stores a tree structure that
	      represents the ancestral relationships among revisions.

       o      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,  RCS
	      alerts the user about the overlapping changes.

       o      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.

       o      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.

       o      Minimize secondary storage.  RCS needs little  extra  space  for
	      the revisions (only the differences).  If intermediate revisions
	      are deleted, the corresponding  deltas  are  compressed  accord-
	      ingly.

   Getting Started with RCS
       Suppose	you have a file f.c that you wish to put under control of RCS.
       If you have not already done so, make an RCS directory with the command

	      mkdir  RCS

       Then invoke the check-in command

	      ci  f.c

       This  command creates an RCS file in the RCS directory, stores f.c into
       it as revision 1.1, and deletes f.c.  It also asks you for  a  descrip-
       tion.   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 RCS directory are called RCS files; the others are called
       working files.  To get back the working file f.c in the previous  exam-
       ple, use the check-out command

	      co  f.c

       This  command extracts the latest revision from the RCS 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 RCS 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
       RCS file need not have a lock for check-in; all others still do.  Turn-
       ing 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  RCS	files,
       create  a  subdirectory	called RCS in your working directory, and move
       all your RCS files there.  RCS  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  RCS  and
       working	files  can be specified in three ways: (a) both are given, (b)
       only the working file is given, (c) only the RCS file is  given.   Both
       RCS  and  working  files may have arbitrary path prefixes; RCS 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 num-
       ber  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, respec-
       tively.	 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
       RCS 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.  RCS 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.  RCS 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 fol-
       lows:

	      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 mod-
       ules 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 identi-
       fication markers; see co(1) for details.

IDENTIFICATION
       Author: Walter F. Tichy.
       Manual Page Revision: 1.5; Release Date: 1999/08/27.
       Copyright (C) 1982, 1988, 1989 Walter F. Tichy.
       Copyright (C) 1990, 1991, 1992, 1993 Paul Eggert.

SEE ALSO
       ci(1), co(1), ident(1), rcs(1), rcsdiff(1),  rcsintro(1),  rcsmerge(1),
       rlog(1)
       Walter  F. Tichy, RCS--A System for Version Control, Software--Practice
       & Experience 15, 7 (July 1985), 637-654.



GNU				  1999/08/27			   RCSINTRO(1)
=29168
+35
(4)