📄 rcs.1
字号:
.de Id.ds Rv \\$3.ds Dt \\$4...Id $Id: rcs.1,v 5.6 1991/09/26 23:16:17 eggert Exp $.ds r \&\s-1RCS\s0.if n .ds - \%--.if t .ds - \(em.TH RCS 1 \*(Dt GNU.SH NAMErcs \- change RCS file attributes.SH SYNOPSIS.B rcs.RI [ " options " ] " file " .\|.\|..SH DESCRIPTION.B rcscreates new \*r files or changes attributes of existing ones.An \*r file contains multiple revisions of text,an access list, a change log,descriptive text,and some control attributes.For.B rcsto work, the caller's login name must be on the access list,except if the access list is empty, the caller is the owner of the fileor the superuser, orthe.B \-ioption is present..PPPathnames matching an \*r suffix denote \*r files;all others denote working files.Names are paired as explained in.BR ci (1).Revision numbers use the syntax described in.BR ci (1)..SH OPTIONS.TP.B \-iCreate and initialize a new \*r file, but do not deposit any revision.If the \*r file has no path prefix, try to place itfirst into the subdirectory.BR ./RCS ,and then into the current directory.If the \*r filealready exists, print an error message..TP.BI \-a "logins"Append the login names appearing in the comma-separated list.I loginsto the access list of the \*r file..TP.BI \-A "oldfile"Append the access list of.I oldfileto the access list of the \*r file..TP.BR \-e [\f2logins\fP]Erase the login names appearing in the comma-separated list.I loginsfrom the access list of the \*r file.If.I loginsis omitted, erase the entire access list..TP.BR \-b [\f2rev\fP]Set the default branch to.IR rev .If.I revis omitted, the defaultbranch is reset to the (dynamically) highest branch on the trunk..TP.BI \-c stringsets the comment leader to.IR string .The comment leaderis printed before every log message line generated by the keyword.B $\&Log$during checkout (see.BR co (1)).This is useful for programminglanguages without multi-line comments.An initial.B ci ,or an.B "rcs\ \-i"without.BR \-c ,guesses the comment leader from the suffix of the working file..TP.BI \-k substSet the default keyword substitution to.IR subst .The effect of keyword substitution is described in.BR co (1).Giving an explicit.B \-koption to.BR co ,.BR rcsdiff ,and.B rcsmergeoverrides this default.Beware.BR "rcs\ \-kv",because.B \-kvis incompatible with.BR "co\ \-l".Use.B "rcs\ \-kkv"to restore the normal default keyword substitution..TP.BR \-l [\f2rev\fP]Lock the revision with number.IR rev .If a branch is given, lock the latest revision on that branch.If.I revis omitted, lock the latest revision on the default branch.Locking prevents overlapping changes.A lock is removed with.B cior.B "rcs\ \-u"(see below)..TP.BR \-u [\f2rev\fP]Unlock the revision with number.IR rev .If a branch is given, unlock the latest revision on that branch.If.I revis omitted, remove the latest lock held by the caller.Normally, only the locker of a revision may unlock it.Somebody else unlocking a revision breaks the lock.This causes a mail message to be sent to the original locker.The message contains a commentary solicited from the breaker.The commentary is terminated by end-of-file or by a line containing.BR \&. "\ by"itself..TP.B \-LSet locking to.IR strict .Strict locking means that the ownerof an \*r file is not exempt from locking for checkin.This option should be used for files that are shared..TP.B \-USet locking to non-strict. Non-strict locking means that the owner ofa file need not lock a revision for checkin.This option should.I notbe used for files that are shared.Whether default locking is strict is determined by your system administrator,but it is normally strict..TP\f3\-m\fP\f2rev\fP\f3:\fP\f2msg\fPReplace revision.IR rev 'slog message with.IR msg ..TP\f3\-n\fP\f2name\fP[\f3:\fP[\f2rev\fP]]Associate the symbolic name.I namewith the branch orrevision.IR rev .Delete the symbolic name if both.B :and.I revare omitted; otherwise, print an error message if.I nameis already associated withanother number.If.I revis symbolic, it is expanded before association.A.I revconsisting of a branch number followed by a.B .\&stands for the current latest revision in the branch.A.B :with an empty.I revstands for the current latest revision on the default branch,normally the trunk.For example,.BI "rcs\ \-n" name ":\ RCS/*"associates.I namewith the current latest revision of all the named \*r files;this contrasts with.BI "rcs\ \-n" name ":$\ RCS/*"which associates.I namewith the revision numbers extracted from keyword stringsin the corresponding working files..TP\f3\-N\fP\f2name\fP[\f3:\fP[\f2rev\fP]]Act like.BR \-n ,except override any previous assignment of.IR name ..TP.BI \-o rangedeletes (\*(lqoutdates\*(rq) the revisions given by.IR range .A range consisting of a single revision number means that revision.A range consisting of a branch number means the latest revision on thatbranch.A range of the form.IB rev1 : rev2meansrevisions.I rev1to.I rev2on the same branch,.BI : revmeans from the beginning of the branch containing.I revup to and including.IR rev ,and.IB rev :meansfrom revision.I revto the end of the branch containing.IR rev .None of the outdated revisions may have branches or locks..TP.B \-qRun quietly; do not print diagnostics..TP.B \-IRun interactively, even if the standard input is not a terminal..TP.B \-s\f2state\fP\f1[\fP:\f2rev\fP\f1]\fPSet the state attribute of the revision.I revto.I state .If.I revis a branch number, assume the latest revision on that branch.If.I revis omitted, assume the latest revision on the default branch.Any identifier is acceptable for.IR state .A useful set of statesis.B Exp(for experimental),.B Stab(for stable), and.B Rel(forreleased).By default,.BR ci (1)sets the state of a revision to.BR Exp ..TP.BR \-t [\f2file\fP]Write descriptive text from the contents of the named.I fileinto the \*r file, deleting the existing text.The.IR filepathname may not begin with.BR \- .If.I fileis omitted, obtain the text from standard input,terminated by end-of-file or by a line containing.BR \&. "\ by"itself.Prompt for the text if interaction is possible; see.BR \-I .With.BR \-i ,descriptive text is obtainedeven if.B \-tis not given..TP.BI \-t\- stringWrite descriptive text from the.I stringinto the \*r file, deleting the existing text..TP.BI \-V nEmulate \*r version.IR n .See.BR co (1)for details..TP.BI \-x "suffixes"Use.I suffixesto characterize \*r files.See.BR ci (1)for details..SH COMPATIBILITYThe.BI \-b revoption generates an \*r file that cannot be parsed by \*r version 3 or earlier..PPThe.BI \-k substoptions (except.BR \-kkv )generate an \*r file that cannot be parsed by \*r version 4 or earlier..PPUse.BI "rcs \-V" nto make an \*r file acceptable to \*r version.I nby discarding information that would confuse version.IR n ..PP\*r version 5.5 and earlier does not support the.B \-xoption, and requires a.B ,vsuffix on an \*r pathname..SH FILES.B rcsaccesses files much as.BR ci (1)does,except that it uses the effective user for all accesses,it does not write the working file or its directory,and it does not even read the working file unless a revision number of.B $is specified..SH ENVIRONMENT.TP.B \s-1RCSINIT\s0options prepended to the argument list, separated by spaces.See.BR ci (1)for details..SH DIAGNOSTICSThe \*r pathname and the revisions outdated are written tothe diagnostic output.The exit status is zero if and only if all operations were successful..SH IDENTIFICATIONAuthor: Walter F. Tichy..brRevision Number: \*(Rv; Release Date: \*(Dt..brCopyright \(co 1982, 1988, 1989 by Walter F. Tichy..brCopyright \(co 1990, 1991 by Paul Eggert..SH "SEE ALSO"co(1), ci(1), ident(1), rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1),rcsfile(5).brWalter F. Tichy,\*r\*-A System for Version Control,.I "Software\*-Practice & Experience".BR 15 ,7 (July 1985), 637-654..SH BUGSThe separator for revision ranges in the.B \-ooption used to be.B \-instead of.BR : ,but this leads to confusion when symbolic names contain.BR \- .For backwards compatibility.B "rcs \-o"still supports the old.B \-separator, but it warns about this obsolete use..PPSymbolic names need not refer to existing revisions or branches.For example, the.B \-ooption does not remove symbolic names for the outdated revisions; you must use.B \-nto remove the names..br
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -