?? ch19_01.htm
字號:
<html><head><title>The Revision Control System (UNIX in a Nutshell: System V Edition)</title><link rel="stylesheet" type="text/css" href="../style/style1.css" /><meta name="DC.Creator" content="Arnold Robbins" /><meta name="DC.Format" content="text/xml" scheme="MIME" /><meta name="DC.Language" content="en-US" /><meta name="DC.Publisher" content="O'Reilly & Associates, Inc." /><meta name="DC.Source" scheme="ISBN" content="1-56592-427-4" /><meta name="DC.Subject.Keyword" content="stuff" /><meta name="DC.Title" content="UNIX in a Nutshell: System V Edition" /><meta name="DC.Type" content="Text.Monograph" /></head><body bgcolor="#ffffff"><img src="gifs/smbanner.gif" usemap="#banner-map" border="0" alt="Book Home" /><map name="banner-map"><area shape="rect" coords="1,-2,616,66" href="index.htm" alt="Book Title" /><area shape="rect" coords="629,-11,726,25" href="jobjects/fsearch.htm" alt="Search this book" /></map><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch18_07.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228" /><td align="right" valign="top" width="228"><a href="ch19_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><h1 class="chapter">Chapter 19. The Revision Control System</h1><div class="htmltoc"><h4 class="tochead">Contents:</h4><p><a href="ch19_01.htm#sect1">Overview of Commands</a><br /><a href="ch19_02.htm">Basic Operation</a><br /><a href="ch19_03.htm">General RCS Specifications</a><br /><a href="ch19_04.htm">Conversion Guide for SCCS Users</a><br /><a href="ch19_05.htm">Alphabetical Summary of Commands</a><br /></p></div><p><a name="unut-ch-19-ix-rcs-utility" /><a name="unut-ch-19-ix-revision-control-rcs-utility" />This chapter presents the following topics:</p><ul><li><p>Overview of commands</p></li><li><p>Basic operation</p></li><li><p>General RCS specifications</p></li><li><p>Conversion guide for SCCS users</p></li><li><p>Alphabetical summary of commands</p></li></ul><p>As with SCCS in the preceding chapter, the Revision Control System (RCS) is designed to keep track of multiple file revisions, thereby reducingthe amount of storage space needed.With RCS you can automatically store and retrieve revisions, merge or compare revisions, keep a complete history (or log) of changes, and identify revisions using symbolic keywords. RCS is believed to be moreefficient than SCCS.Unlike SCCS, RCS preserves execute permission on the files itmanages, and you can store binary data in RCS files.</p><p>RCS is not part of standard SVR4 or Solaris.It can be obtainedfrom the Free Software Foundation(see http://www.gnu.org).This chapter describes RCS Version 5.7.</p><p>For more information, see <em class="citetitle">Applying RCS and SCCS</em>, listed in the <a href="biblio.htm">Bibliography</a>.</p><div class="sect1"><a name="unut-ch-19-sect-1" /><h2 class="sect1"><a name="sect1" />19.1. Overview of Commands</h2><p>The three mostimportant RCS commands are:</p><table border="1" cellpadding="3"><tr><td><tt class="literal">ci</tt></td><td><p>Check in revisions (put a file under RCS control).</p></td></tr><tr><td><tt class="literal">co</tt></td><td><p>Check out revisions.</p></td></tr><tr><td><tt class="literal">rcs</tt></td><td><p>Set up or change attributes of RCS files.</p></td></tr></table><p><p>Two commands provide information about RCS files:</p><table border="1" cellpadding="3"><tr><td><tt class="literal">ident</tt></td><td><p>Extract keyword values from an RCS file.</p></td></tr><tr><td><tt class="literal">rlog</tt></td><td><p>Display a summary (log) about the revisions in an RCS file.</p></td></tr></table><p><p>You can compare RCS files with these commands:</p><table border="1" cellpadding="3"><tr><td><tt class="literal">merge</tt></td><td><p>Incorporate changes from two files into a third file.</p></td></tr><tr><td><tt class="literal">rcsdiff</tt></td><td><p>Report differences between revisions.</p></td></tr><tr><td><tt class="literal">rcsmerge</tt></td><td><p>Incorporate changes from two RCS files into a third RCS file.</p></td></tr></table><p><p>The following commands help with configuration management.However, they are considered optional, so they are not always installed.</p><table border="1" cellpadding="3"><tr><td><tt class="literal">rcsclean</tt></td><td><p>Remove working files that have not been changed.</p></td></tr><tr><td><tt class="literal">rcsfreeze</tt></td><td><p>Label the files that make up a configuration.</p></td></tr></table><p></div><hr width="684" align="left" /><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch18_07.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228"><a href="index.htm"><img src="../gifs/txthome.gif" alt="Home" border="0" /></a></td><td align="right" valign="top" width="228"><a href="ch19_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td align="left" valign="top" width="228">18.7. sccs and Pseudo-Commands</td><td align="center" valign="top" width="228"><a href="index/index.htm"><img src="../gifs/index.gif" alt="Book Index" border="0" /></a></td><td align="right" valign="top" width="228">19.2. Basic Operation</td></tr></table></div><hr width="684" align="left" /><img src="../gifs/navbar.gif" usemap="#library-map" border="0" alt="Library Navigation Links" /><p><p><font size="-1"><a href="copyrght.htm">Copyright © 2003</a> O'Reilly & Associates. All rights reserved.</font></p><map name="library-map"><area shape="rect" coords="1,0,88,96" href="../index.htm"><area shape="rect" coords="90,0,165,96" href="../upt/index.htm"><area shape="rect" coords="168,1,253,107" href="../mac/index.htm"><area shape="rect" coords="255,0,335,97" href="../korn/index.htm"><area shape="rect" coords="337,0,415,109" href="../unixnut/index.htm"><area shape="rect" coords="417,0,512,122" href="../sedawk/index.htm"><area shape="rect" coords="514,0,605,105" href="../lunix/index.htm"><area shape="rect" coords="611,2,694,121" href="../vi/index.htm"> </map></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -