Computer And Technologies

Computer And Technologies: SCCS - (Source Code Control System)

Wednesday, 6 May 2009

SCCS - (Source Code Control System)

The following commands assume an SCCS repository in /sccs.


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

To get a read only copy of a file:

get /sccs/migrate/scripts/s.

NOTE: You can get multiple files using standard Unix wildcard

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

To get an editable copy of a file:

get -e /sccs/migrate/scripts/s.

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

To check edited copy into repository:

delta /sccs/migrate/scripts/s.

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.

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

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

sccsdiff -r1.6 -r1.7 /sccs/migrate/scripts/s.

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

To add a new file:

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

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.

No comments:

Post a Comment