SCCS - Cheat Sheet

by Jeff Hunter, Sr. Database Administrator


The following commands assume an SCCS repository in /sccs.


----------------------------------------------------------------------------------

To get a read only copy of a file:

    get /sccs/migrate/scripts/s.<name>

    NOTE:  You can get multiple files using standard Unix wildcard

----------------------------------------------------------------------------------

To get an editable copy of a file:

    get -e /sccs/migrate/scripts/s.<name>

-----------------------------------------------------------------------------------

To check edited copy into repository:

    delta /sccs/migrate/scripts/s.<name>

    NOTE:  Please put in a comment when prompted.
    Also, the delta command removes the file from your directory so you have to 
    get it again if you want to run it.

----------------------------------------------------------------------------------

To get history of changes:

    prs /sccs/migrate/scripts/s.<name>

----------------------------------------------------------------------------------

To compare two revisions of a file (Example rev 1.6 and 1.7):

    sccsdiff -r1.6 -r1.7 /sccs/migrate/scripts/s.<name>

-----------------------------------------------------------------------------------

To add a new file:

    admin -i<name> -y"COMMENT" /sccs/migrate/scripts/s.<name>

    The admin does not remove it from your directory.
    However, the unexpanded keywords are still in the file so it appears to 
    be an editable copy.



Last modified on: Saturday, 18-Sep-2010 18:16:07 EDT
Page Count: 7719