sccs create filenameor
sccs admin -ifilename filenameThis doesn't remove the original file.
When you initially sccs a file, you can only annotate the delta by using
sccs admin -imain.c -y"First Release" main.cWith subsequent modifications you are prompted for a comment if you don't use the -y option.
You can use the ksh shell script below to sccs all your files at once.
for file in (*.[.ch]) do sccs admin -i$file $file doneAn SID is an identification number for a modification (a `delta'). The first delta is usually 1.1 and succeeding versions will be 1.2, 1.3 etc unless you ask for branches to be made. To prepare an s-file for branching do
sccs admin -fb filename. sccs admin -ifilename -fb filename.creates an s-file that is ready to accept branches straight away.
For a full list of commands and options, see man sccs etc. Here are some examples to get you started
To make a new delta,
sccs edit filenameThis changes SCCS/s.filename to SCCS/p.filename to show that the file is out for editing, and pulls the file out. Any file with the same name is overwritten. If you have the new version of the file already in the directory and don't want to rewrite it, do
sccs edit -g filenameThen when you have edited it, do
sccs delta filenameYou will be prompted to add a comment to the delta.
sccs delta `sccs tell`deltas all out-for-edit versions To get out a particular version use
sccs get -r[revision] filenameTo correct a delta (not make a new one)
sccs fix -r[rev] filenamethen edit and do
sccs delta filenameNB: when you fix 1.2.1.1 it get delta'd back as 1.3. A bug.
To remove a delta,
sccs rmdel -r[rev] filenameTo make a branch use the `-b' option.
sccs edit -r1.2 -b filenamewill create a branch from 1.2. When you have edited the file and do a delta, the delta will have SID 1.2.1.1.
To compare the file out for edit with the latest SCCS trunk version, try
sccs diffs filename
sccs sccsdiff -r1.1 -r1.2This will compare the two SCCS versions. To get information on the deltas of a file, type
sccs prs filenameYou'll get an output something like:
--------------------------------------------------------- D 1.3 86/06/06 16:59:47 root 3 2 00011/00001/00101 MRs: COMMENTS: added header file dependancies D 1.2 86/02/11 12:06:27 root 2 1 00001/00012/00101 MRs: COMMENTS: CUED mods. Deleted sccs stuff. D 1.1 86/02/11 10:42:02 root 1 0 00113/00000/00000 MRs: COMMENTS: Initial revision ---------------------------------------------------------The numbers on the far right tell you
lines_added/lines_removed/lines_unchanged
sccs edit -r2 SCCSchanges release number of all files
Notes:-