📄 ci.1
字号:
.de Id.ds Rv \\$3.ds Dt \\$4...Id $Id: ci.1,v 5.9 1991/10/07 17:32:46 eggert Exp $.ds r \&\s-1RCS\s0.if n .ds - \%--.if t .ds - \(em.TH CI 1 \*(Dt GNU.SH NAMEci \- check in RCS revisions.SH SYNOPSIS.B ci.RI [ options ] " file " .\|.\|..SH DESCRIPTION.B cistores new revisions into \*r files.Each pathname matching an \*r suffixis taken to be an \*r file.All othersare assumed to be working files containing new revisions..B cideposits the contents of each working fileinto the corresponding \*r file.If only a working file is given,.B citries to find the corresponding \*r file in an \*r subdirectoryand then in the working file's directory.For more details, see.SM "FILE NAMING"below..PPFor.B cito work, the caller's login must be on the access list,except if the access list is empty or the caller is the superuser or theowner of the file.To append a new revision to an existing branch, the tip revision onthat branch must be locked by the caller. Otherwise, only anew branch can be created. This restriction is not enforcedfor the owner of the file if non-strict locking is used(see.BR rcs (1)).A lock held by someone else may be broken with the.B rcscommand..PPUnless the.B \-foption is given,.B cichecks whether the revision to be deposited differs from the preceding one.If not, instead of creating a new revision.B cireverts to the preceding one.To revert, ordinary.B ciremoves the working file and any lock;.B "ci\ \-l"keeps and.B "ci\ \-u"removes any lock, and then they both generate a new working file much as if.B "co\ \-l"or.B "co\ \-u"had been applied to the preceding revision.When reverting, any.B \-nand.B \-soptions apply to the preceding revision..PPFor each revision deposited,.B ciprompts for a log message.The log message should summarize the change and must be terminated byend-of-file or by a line containing.BR \&. "\ by"itself.If several files are checked in.B ciasks whether to reuse theprevious log message.If the standard input is not a terminal,.B cisuppresses the promptand uses the same log message for all files.See also.BR \-m ..PPIf the \*r file does not exist,.B cicreates it anddeposits the contents of the working file as the initial revision(default number:.BR 1.1 ).The access list is initialized to empty.Instead of the log message,.B cirequests descriptive text (see.B \-tbelow)..PPThe number.I revof the deposited revision can be given by any of the options.BR \-f ,.BR \-I ,.BR \-k ,.BR \-l ,.BR \-M ,.BR \-q ,.BR \-r ,or.BR \-u ..I revmay be symbolic, numeric, or mixed.If.I revis.BR $ ,.B cidetermines the revision number from keyword values in the working file..PPIf.I revis a revision number, it must be higher than the latestone on the branch to which.I revbelongs, or must start a new branch..PPIf.I revis a branch rather than a revision number,the new revision is appended to that branch. The level number is obtainedby incrementing the tip revision number of that branch.If.I revindicates a non-existing branch,that branch is created with the initial revision numbered.IB rev .1\f1.\fP.br.ne 8.PPIf.I revis omitted,.B citries to derive the new revision number fromthe caller's last lock. If the caller has locked the tip revision of a branch,the new revision is appended to that branch.The new revision number is obtainedby incrementing the tip revision number.If the caller locked a non-tip revision, a new branch is started atthat revision by incrementing the highest branch number at that revision.The default initial branch and level numbers are.BR 1 ..PPIf.I revis omitted and the caller has no lock, but ownsthe file and lockingis not set to.IR strict ,then the revision is appended to thedefault branch (normally the trunk; see the.B \-boption of.BR rcs (1))..PPException: On the trunk, revisions can be appended to the end, butnot inserted..SH OPTIONS.TP.BR \-r [\f2rev\fP]checks in a revision, releases the corresponding lock, andremoves the working file. This is the default..RS.PPThe.B \-roption has an unusual meaning in.BR ci .In other \*r commands,.B \-rmerely specifies a revision number,but in.B ciit also releases a lock and removes the working file.See.B \-ufor a tricky example..RE.TP.BR \-l [\f2rev\fP]works like.BR \-r ,except it performs an additional.B "co\ \-l"for thedeposited revision. Thus, the deposited revision is immediatelychecked out again and locked.This is useful for saving a revision although one wants to continueediting it after the checkin..TP.BR \-u [\f2rev\fP]works like.BR \-l ,except that the deposited revision is not locked.This lets one read the working fileimmediately after checkin..RS.PPThe.BR \-l ,.BR \-r ,and.B \-uoptions are mutually exclusive and silently override each other.For example,.B "ci\ \-u\ \-r"is equivalent to.B "ci\ \-r"because.B \-roverrides.BR \-u ..RE.TP.BR \-f [\f2rev\fP]forces a deposit; the new revision is deposited even it is not differentfrom the preceding one..TP.BR \-k [\f2rev\fP]searches the working file for keyword values to determine its revision number,creation date, state, and author (see.BR co (1)),and assigns thesevalues to the deposited revision, rather than computing them locally.It also generates a default login message noting the login of the callerand the actual checkin date.This option is useful for software distribution. A revision that is sent toseveral sites should be checked in with the.B \-koption at these sites topreserve the original number, date, author, and state.The extracted keyword values and the default log message may be overriddenwith the options.BR \-d ,.BR \-m ,.BR \-s ,.BR \-w ,and any option that carries a revision number..TP.BR \-q [\f2rev\fP]quiet mode; diagnostic output is not printed.A revision that is not different from the preceding one is not deposited,unless.B \-fis given..TP.BR \-I [\f2rev\fP]interactive mode;the user is prompted and questionedeven if the standard input is not a terminal..TP.BR \-d "[\f2date\fP]"uses.I datefor the checkin date and time.The.I dateis specified in free format as explained in.BR co (1).This is useful for lying about the checkin date, and for.B \-kif no date is available.If.I dateis empty, the working file's time of last modification is used..TP.BR \-M [\f2rev\fP]Set the modification time on any new working fileto be the date of the retrieved revision.For example,.BI "ci\ \-d\ \-M\ \-u" "\ f"does not alter.IR f 'smodification time, even if.IR f 'scontents change due to keyword substitution.Use this option with care; it can confuse.BR make (1)..TP.BI \-m "msg"uses the string.I msgas the log message for all revisions checked in..TP.BI \-n "name"assigns the symbolic name.I nameto the number of the checked-in revision..B ciprints an error message if.I nameis already assigned to anothernumber..TP.BI \-N "name"same as.BR \-n ,except that it overrides a previous assignment of.IR name ..TP.BI \-s "state"sets the state of the checked-in revision to the identifier.IR state .The default state is.BR Exp ..TP.BI \-t filewrites descriptive text from the contents of the named.I fileinto the \*r file,deleting the existing text.The.I filemay not begin with.BR \- ..TP.BI \-t\- stringWrite descriptive text from the.I stringinto the \*r file, deleting the existing text..RS.PPThe.B \-toption, in both its forms, has effect only during an initial checkin;it is silently ignored otherwise..PPDuring the initial checkin, if.B \-tis not given,.B ciobtains the text from standard input,terminated by end-of-file or by a line containing.BR \&. "\ by"itself.The user is prompted for the text if interaction is possible; see.BR \-I ..PPFor backward compatibility with older versions of \*r, a bare.B \-toption is ignored..RE.TP.BI \-w "login"uses.I loginfor the author field of the deposited revision.Useful for lying about the author, and for.B \-kif no author is available..TP.BI \-V nEmulate \*r version.IR n .See.BR co (1)for details..TP.BI \-x "suffixes"specifies the suffixes for \*r files.A nonempty suffix matches any pathname ending in the suffix.An empty suffix matches any pathname of the form.BI RCS/ fileor.IB path /RCS/ file.The.B \-xoption can specify a list of suffixesseparated by.BR / .For example,.B \-x,v/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -