home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / infoguide / advanced / unix / unix-faq-part7 < prev   
Text File  |  1997-12-01  |  14KB  |  349 lines

  1. Archive-name: unix-faq/faq/part7
  2. Version: $Id: part7,v 2.4 1994/01/14 14:58:06 tmatimar Exp $
  3.  
  4. These seven articles contain the answers to some Frequently Asked
  5. Questions often seen in comp.unix.questions and comp.unix.shell.
  6. Please don't ask these questions again, they've been answered plenty
  7. of times already - and please don't flame someone just because they may
  8. not have read this particular posting.  Thank you.
  9.  
  10. This collection of documents is Copyright (c) 1994, Ted Timar.
  11. All rights reserved.  Permission to distribute the collection is
  12. hereby granted providing that distribution is electronic, no money
  13. is involved, reasonable attempts are made to use the latest version
  14. and all credits and this copyright notice are maintained.
  15. Other requests for distribution will be considered.
  16.  
  17. All information here has been contributed with good intentions, but
  18. none of it is guaranteed either by the contributors or myself to be
  19. accurate.  The users of this information take all responsibility for
  20. any damage that may occur.
  21.  
  22. Many FAQs, including this one, are available on the archive site
  23. rtfm.mit.edu in the directory pub/usenet/news.answers.
  24. The name under which a FAQ is archived appears in the "Archive-Name:"
  25. line at the top of the article.  This FAQ is archived as
  26. "unix-faq/faq/part[1-7]".
  27.  
  28. These articles are divided approximately as follows:
  29.  
  30.       1.*) General questions.
  31.       2.*) Relatively basic questions, likely to be asked by beginners.
  32.       3.*) Intermediate questions.
  33.       4.*) Advanced questions, likely to be asked by people who thought
  34.        they already knew all of the answers.
  35.       5.*) Questions pertaining to the various shells, and the differences.
  36.       6.*) An overview of Unix variants.
  37.       7.*) An comparison of configuration management systems (RCS, SCCS).
  38.  
  39. This article includes answers to:
  40.  
  41.       7.1)  RCS vs SCCS:  Introduction
  42.       7.2)  RCS vs SCCS:  How do the interfaces compare?
  43.       7.3)  RCS vs SCCS:  What's in a Revision File?
  44.       7.4)  RCS vs SCCS:  What are the keywords?
  45.       7.5)  What's an RCS symbolic name?
  46.       7.6)  RCS vs SCCS:  How do they compare for performance?
  47.       7.7)  RCS vs SCCS:  Version Identification.
  48.       7.8)  RCS vs SCCS:  How do they handle problems?
  49.       7.9)  RCS vs SCCS:  How do they interact with make(1)?
  50.       7.10) RCS vs SCCS:  Conversion
  51.       7.11) RCS vs SCCS:  Support
  52.       7.12) RCS vs SCCS:  Command Comparison
  53.       7.13) RCS vs SCCS:  Acknowledgements
  54.       7.14) Can I get more information on configuration management systems?
  55.  
  56. If you're looking for the answer to, say, question 7.5, and want to skip
  57. everything else, you can search ahead for the regular expression "^7.5)".
  58.  
  59. While these are all legitimate questions, they seem to crop up in
  60. comp.unix.questions or comp.unix.shell on an annual basis, usually
  61. followed by plenty of replies (only some of which are correct) and then
  62. a period of griping about how the same questions keep coming up.  You
  63. may also like to read the monthly article "Answers to Frequently Asked
  64. Questions" in the newsgroup "news.announce.newusers", which will tell
  65. you what "UNIX" stands for.
  66.  
  67. With the variety of Unix systems in the world, it's hard to guarantee
  68. that these answers will work everywhere.  Read your local manual pages
  69. before trying anything suggested here.  If you have suggestions or
  70. corrections for any of these answers, please send them to to
  71. tmatimar@empress.com.
  72.  
  73. ----------------------------------------------------------------------
  74.  
  75. Subject: RCS vs SCCS:  Introduction
  76. Date: Sat, 10 Oct 92 19:34:39 +0200
  77. >From: Bill Wohler <wohler@sap-ag.de>
  78.  
  79. 7.1)  RCS vs SCCS:  Introduction
  80.  
  81.       The majority of the replies (in a recent poll) were in favor of
  82.       RCS, a few for SCCS, and a few suggested alternatives such as CVS.
  83.  
  84.       Functionally RCS and SCCS are practically equal, with RCS having
  85.       a bit more features since it continues to be updated.
  86.  
  87.       Note that RCS learned from the mistakes of SCCS...
  88.  
  89. ------------------------------
  90.  
  91. Subject: RCS vs SCCS:  How do the interfaces compare?
  92. Date: Sat, 10 Oct 92 19:34:39 +0200
  93. >From: Bill Wohler <wohler@sap-ag.de>
  94.  
  95. 7.2)  RCS vs SCCS:  How do the interfaces compare?
  96.  
  97.       RCS has an easier interface for first time users.  There are less
  98.       commands, it is more intuitive and consistent, and it provides
  99.       more useful arguments.
  100.  
  101.       Branches have to be specifically created in SCCS.  In RCS, they
  102.       are checked in as any other version.
  103.  
  104. ------------------------------
  105.  
  106. Subject: RCS vs SCCS:  What's in a Revision File?
  107. Date: Sat, 10 Oct 92 19:34:39 +0200
  108. >From: Bill Wohler <wohler@sap-ag.de>
  109.  
  110. 7.3)  RCS vs SCCS:  What's in a Revision File?
  111.  
  112.       RCS keeps history in files with a ",v" suffix.  SCCS keeps
  113.       history in files with a "s." prefix.
  114.  
  115.       RCS looks for RCS files automatically in the current directory or
  116.       in a RCS subdirectory, or you can specify an alternate RCS file.
  117.       The sccs front end to SCCS always uses the SCCS directory.  If
  118.       you don't use the sccs front end, you must specify the full SCCS
  119.       filename.
  120.  
  121.       RCS stores its revisions by holding a copy of the latest version
  122.       and storing backward deltas.  SCCS uses a "merged delta"
  123.       concept.
  124.  
  125.       All RCS activity takes place within a single RCS file.  SCCS
  126.       maintains several files.  This can be messy and confusing.
  127.  
  128.       Editing either RCS or SCCS files is a bad idea because mistakes
  129.       are so easy to make and so fatal to the history of the file.
  130.       Revision information is easy to edit in both types, whereas one
  131.       would not want to edit the actual text of a version in RCS.  If
  132.       you edit an SCCS file, you will have to recalculate the checksum
  133.       using the admin program.
  134.  
  135. ------------------------------
  136.  
  137. Subject: RCS vs SCCS:  What are the keywords?
  138. Date: Sat, 10 Oct 92 19:34:39 +0200
  139. >From: Bill Wohler <wohler@sap-ag.de>
  140.  
  141. 7.4)  RCS vs SCCS:  What are the keywords?
  142.  
  143.       RCS and SCCS use different keywords that are expanded in the
  144.       text.  For SCCS the keyword "%I%" is replaced with the revision
  145.       number if the file is checked out for reading.
  146.  
  147.       The RCS keywords are easier to remember, but keyword expansion is
  148.       more easily customized in SCCS.
  149.  
  150.       In SCCS, keywords are expanded on a read-only get.  If a version
  151.       with expanded keywords is copied into a file that will be
  152.       deltaed, the keywords will be lost and the version information in
  153.       the file will not be updated.  On the other hand, RCS retains the
  154.       keywords when they are expanded so this is avoided.
  155.  
  156. ------------------------------
  157.  
  158. Subject: What's an RCS symbolic name?
  159. Date: Sat, 10 Oct 92 19:34:39 +0200
  160. >From: Bill Wohler <wohler@sap-ag.de>
  161.  
  162. 7.5)  What's an RCS symbolic name?
  163.  
  164.       RCS allows you treat a set of files as a family of files while
  165.       SCCS is meant primarily for keeping the revision history of
  166.       files.
  167.  
  168.       RCS accomplishes that with symbolic names: you can mark all the
  169.       source files associated with an application version with `rcs
  170.       -n', and then easily retrieve them later as a cohesive unit.  In
  171.       SCCS you would have to do this by writing a script to write or
  172.       read all file names and versions to or from a file.
  173.  
  174. ------------------------------
  175.  
  176. Subject: RCS vs SCCS:  How do they compare for performance?
  177. Date: Sat, 10 Oct 92 19:34:39 +0200
  178. >From: Bill Wohler <wohler@sap-ag.de>
  179.  
  180. 7.6)  RCS vs SCCS:  How do they compare for performance?
  181.  
  182.       Since RCS stores the latest version in full, it is much faster in
  183.       retrieving the latest version.  After RCS version 5.6, it is also
  184.       faster than SCCS in retrieving older versions.
  185.  
  186. ------------------------------
  187.  
  188. Subject: RCS vs SCCS:  Version Identification.
  189. Date: Sat, 10 Oct 92 19:34:39 +0200
  190. >From: Bill Wohler <wohler@sap-ag.de>
  191.  
  192. 7.7)  RCS vs SCCS:  Version Identification.
  193.  
  194.       SCCS is able to determine when a specific line of code was added
  195.       to a system.
  196.  
  197. ------------------------------
  198.  
  199. Subject: RCS vs SCCS:  How do they handle problems?
  200. Date: Sat, 10 Oct 92 19:34:39 +0200
  201. >From: Bill Wohler <wohler@sap-ag.de>
  202.  
  203. 7.8)  RCS vs SCCS:  How do they handle problems?
  204.  
  205.       If you are missing the sccs or rcs tools, or the RCS or SCCS file
  206.       is corrupt and the tools don't work on it, you can still retrieve
  207.       the latest version in RCS.  Not true with SCCS.
  208.  
  209. ------------------------------
  210.  
  211. Subject: RCS vs SCCS:  How do they interact with make(1)?
  212. Date: Wed, 30 Dec 1992 10:41:51 -0700
  213. >From: Blair P. Houghton <bhoughto@sedona.intel.com>
  214.  
  215. 7.9)  RCS vs SCCS:  How do they interact with make(1)?
  216.  
  217.       The fact that SCCS uses prefixes (s.file.c) means that make(1)
  218.       can't treat them in an ordinary manner, and special rules
  219.       (involving '~' characters) must be used in order for make(1) to
  220.       work with SCCS; even so, make(1) on some UNIX platforms will not
  221.       apply default rules to files that are being managed with SCCS.
  222.       The suffix notation (file.c,v) for RCS means that ordinary
  223.       suffix-rules can be used in all implementations of make(1), even
  224.       if the implementation isn't designed to handle RCS files
  225.       specially.
  226.  
  227. ------------------------------
  228.  
  229. Subject: RCS vs SCCS:  Conversion.
  230. Date: Sat, 10 Oct 92 19:34:39 +0200
  231. >From: Bill Wohler <wohler@sap-ag.de>
  232.  
  233. 7.10) RCS vs SCCS:  Conversion.
  234.  
  235.       RCS provides a program to convert from SCCS to RCS.  One would
  236.       have to write his own program to convert from RCS to SCCS.
  237.  
  238. ------------------------------
  239.  
  240. Subject: RCS vs SCCS:  Support
  241. Date: Sat, 10 Oct 92 19:34:39 +0200
  242. >From: Bill Wohler <wohler@sap-ag.de>
  243.  
  244. 7.11) RCS vs SCCS:  Support
  245.  
  246.       SCCS is supported by AT&T.  RCS is supported by the Free Software
  247.       Foundation.  Therefore RCS runs on many more platforms, including
  248.       PCs.
  249.  
  250.       Most make programs recognize SCCS's "s."  prefix while GNU make
  251.       is one of the few that handles RCS's ",v" suffix.
  252.  
  253.       Some tar programs have a -F option that ignores either RCS
  254.       directories, or SCCS directories or both.
  255.  
  256. ------------------------------
  257.  
  258. Subject: RCS vs SCCS:  Command Comparison
  259. Date: Sat, 10 Oct 92 19:34:39 +0200
  260. >From: Bill Wohler <wohler@sap-ag.de>
  261.  
  262. 7.12) RCS vs SCCS:  Command Comparison
  263.  
  264.       SCCS                        RCS                   Explanation
  265.       ====                        ===                   ===========
  266.  
  267.       sccs admin -i -nfile file   ci file               Checks in the file
  268.                                                         for the first time,
  269.                                                         creating the revision
  270.                                                         history file.
  271.  
  272.       sccs get file               co file               Check out a file for
  273.                                                         reading.
  274.  
  275.       sccs edit file              co -l file            Check out a file for
  276.                                                         modification.
  277.  
  278.       sccs delta file             ci file               Check in a file
  279.                                                         previously locked.
  280.  
  281.       what file                   ident file            Print keyword
  282.                                                         information.
  283.  
  284.       sccs prs file               rlog file             Print a history of
  285.                                                         the file.
  286.  
  287.       sccs sccsdiff -rx -ry file  rcsdiff -rx -ry file  Compare two
  288.                                                         revisions.
  289.  
  290.       sccs diffs file             rcsdiff file          Compare current with
  291.                                                         last revision.
  292.  
  293.       sccs edit -ix-y file        rcsmerge -rx-y file   Merge changes between
  294.                                                         two versions into
  295.                                                         file.
  296.  
  297.       ???                         rcs -l file           Lock the latest
  298.                                                         revision.
  299.  
  300.       ???                         rcs -u file           Unlock the latest
  301.                                                         revision.  Possible
  302.                                                         to break another's 
  303.                                                         lock, but mail is
  304.                                                         sent to the other
  305.                                                         user explaining why.
  306.  
  307. ------------------------------
  308.  
  309. Subject: RCS vs SCCS:  Acknowledgements
  310. Date: Sat, 10 Oct 92 19:34:39 +0200
  311. >From: Bill Wohler <wohler@sap-ag.de>
  312.  
  313. 7.13) RCS vs SCCS:  Acknowledgements
  314.  
  315.       I would like to thank the following persons for contributing to
  316.       these articles.  I'd like to add your name to the list--please
  317.       send comments or more references to Bill Wohler <wohler@sap-ag.de>.
  318.  
  319.     Karl Vogel <vogel@c-17igp.wpafb.af.mil>
  320.     Mark Runyan <runyan@hpcuhc.cup.hp.com>
  321.     Paul Eggert <eggert@twinsun.com>
  322.     Greg Henderson <henders@infonode.ingr.com>
  323.     Dave Goldberg <dsg@mbunix.mitre.org>
  324.     Rob Kurver <rob@pact.nl>
  325.     Raymond Chen <rjc@math.princeton.edu>
  326.     Dwight <dwight@s1.gov>
  327.  
  328. ------------------------------
  329.  
  330. Subject: Can I get more information on configuration management systems?
  331. Date: Thu Oct 15 10:27:47 EDT 1992
  332. >From: Ted Timar <tmatimar@empress.com>
  333.  
  334. 7.14) Can I get more information on configuration management systems?
  335.  
  336.       Bill Wohler, who compiled all of the information in this part of
  337.       the FAQ, has compiled much more information.  This information is
  338.       available for ftp from ftp.wg.omron.co.jp (133.210.4.4) under
  339.       "pub/unix-faq/docs/rev-ctl-sys".
  340.  
  341. ------------------------------
  342.  
  343. End of unix/faq Digest part 7 of 7
  344. **********************************
  345.  
  346. -- 
  347. Ted Timar - tmatimar@empress.com
  348. Empress Software, 3100 Steeles Ave E, Markham, Ont., Canada L3R 8T3
  349.