?? ch18_01.htm
字號:
<html><head><title>The Source Code 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="part4.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="ch18_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><h1 class="chapter">Chapter 18. The Source Code Control System</h1><div class="htmltoc"><h4 class="tochead">Contents:</h4><p><a href="ch18_01.htm#sect1">Introduction</a><br /><a href="ch18_02.htm">Overview of Commands</a><br /><a href="ch18_03.htm">Basic Operation</a><br /><a href="ch18_04.htm">Identification Keywords</a><br /><a href="ch18_05.htm">Data Keywords</a><br /><a href="ch18_06.htm">Alphabetical Summary of SCCS Commands</a><br /><a href="ch18_07.htm">sccs and Pseudo-Commands</a><br /></p></div><p><a name="unut-ch-18-ix-sccs-utility" /><a name="unut-ch-18-ix-revision-control-sccs-utility" /><a name="IXT-18-123486" />This chapter presents the following topics:</p><ul><li><p>Introduction</p></li><li><p>Overview of commands</p></li><li><p>Basic operation</p></li><li><p>Identification keywords</p></li><li><p>Data keywords</p></li><li><p>Alphabetical summary of commands</p></li><li><p><tt class="literal">sccs</tt> and pseudo-commands</p></li></ul><p>Note: SCCS users who are more familiar with RCS may benefit from the “Conversion Guide for SCCS Users”in <a href="ch19_01.htm">Chapter 19</a>,which lists SCCS commands and their RCS equivalents.</p><p>For more information, see <em class="citetitle">Applying RCS andSCCS</em>, listed in the <a href="biblio.htm">Bibliography</a>.</p><div class="sect1"><a name="S18.1" /><h2 class="sect1"><a name="sect1" />18.1. Introduction</h2><p>The Source Code Control System (SCCS) lets you keep track of each revision of a document, avoiding the confusion that often arises from having several versions ofone file online. SCCS is particularly useful when programsare enhanced, but the original version is still needed.</p><p>All changes to a file are stored in a file named<tt class="literal">s.</tt><em class="emphasis">file</em>, which is called an SCCS file.Each time a file is “entered” into SCCS, SCCS notes which lines have been changed or deleted since the most recent version. From that information, SCCS can regeneratethe file on demand. Each set of changes depends on all previous sets of changes.</p><p>Each set of changes is called a <em class="emphasis">delta</em> and is assigned an<b class="emphasis-bold">S</b>CCS<b class="emphasis-bold">id</b>entification string (<em class="emphasis">sid</em>).The <em class="emphasis">sid</em> consists of either two components: release and level numbers (in theform <em class="emphasis">a</em><tt class="literal">.</tt><em class="emphasis">b</em>) or of four components:the release, level, branch, and sequence numbers (in the form <em class="emphasis">a</em><tt class="literal">.</tt><em class="emphasis">b</em><tt class="literal">.</tt><em class="emphasis">c</em><tt class="literal">.</tt><em class="emphasis">d</em>). The branches and sequences are for situations when two on-runningversions of the same file are recorded in SCCS.For example, <em class="emphasis">delta3.2.1.1</em> refers to release 3, level 2, branch 1, sequence 1.</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="part4.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="ch18_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td align="left" valign="top" width="228">IV. Software Development</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">18.2. Overview of Commands</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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -