old-www/HOWTO/RCS-5.html

69 lines
2.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE> The RCS MINI-HOWTO: ci(1) and co(1).</TITLE>
<LINK HREF="RCS-6.html" REL=next>
<LINK HREF="RCS-4.html" REL=previous>
<LINK HREF="RCS.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="RCS-6.html">Next</A>
<A HREF="RCS-4.html">Previous</A>
<A HREF="RCS.html#toc5">Contents</A>
<HR>
<H2><A NAME="s5">5. <CODE>ci(1)</CODE> and <CODE>co(1)</CODE>.</A></H2>
<P><CODE>ci(1)</CODE> and <CODE>co(1)</CODE> are the commands used to check
files in and out of their RCS archives. The <CODE>ci(1)</CODE> command
may also be used to a check a file both in and out of an archive. In
their simplest forms, <CODE>ci(1)</CODE> and <CODE>co(1)</CODE> take only the
name of the working file.
<PRE>
ci name_of_work_file
</PRE>
and
<PRE>
co name_of_work_file
</PRE>
The command form
<PRE>
ci -l name_of_work_file
</PRE>
checks in the file with locking enabled, and
<PRE>
co -l name_of_work_file
</PRE>
<EM>is performed automatically.</EM> That is, <CODE>ci -l</CODE> checks
the file out again with locking enabled.
<PRE>
ci -u name_of_work_file
</PRE>
checks the file into the archive, and checks it out again with
locking disabled. In all cases, the user is prompted for a log
message.
<P><CODE>ci(1)</CODE> will also create a RCS archive if one does not exist
already.
<P>If you don't specify a revision, <CODE>ci(1)</CODE> increments the
version number of the last revision locked in the archive, and appends
the revised working file to it. If you specify a revision on an
existing branch, it must be higher than the existing revision numbers.
<CODE>ci(1)</CODE> will also create a new branch if you specify the
revision of a branch which does not exist. See the <CODE>ci(1)</CODE>
and <CODE>co(1)</CODE> man pages for details.
<P><CODE>ci(1)</CODE> and <CODE>co(1)</CODE> have various options for interactive
and non-interactive use. Again, see the <CODE>ci(1)</CODE> and
<CODE>co(1)</CODE> man pages for details.
<P>
<HR>
<A HREF="RCS-6.html">Next</A>
<A HREF="RCS-4.html">Previous</A>
<A HREF="RCS.html#toc5">Contents</A>
</BODY>
</HTML>