Hprc banner tamu.png

Difference between revisions of "SW:RCS"

From TAMU HPRC
Jump to: navigation, search
(never knew a preceding space would change the formatting)
Line 1: Line 1:
  test
+
RCS (Revision Control System) is very useful for small groups wanting to operate on and update common files. It provides a way to "lock" files while changes are made and provides a method to document why changes where made.
  test2
+
 
  never knew a preceding space would change the formatting
+
For the best explanation see the '''man''' page:  
 +
 
 +
man rcsintro
 +
 
 +
That is the best place to get an overview.
 +
 
 +
Typical use will be something like:
 +
 
 +
  co -l filename # check out file from RCS with a lock
 +
  # vi/edit filename (make changes)
 +
  ci -m"I made this change" filename  # check file back in to RCS to remove lock... provide a message to explain changes
 +
  co filename # after you do "ci" it won't be in present directory anymore, check it out without a lock
 +
 
 +
For groups wanting to share files, we recommend the directory with the files and RCS directory within have 2770 permissions with group ownership set for the group.
 +
 
 +
Useful tools include '''rcsdiff''' (show differences between different versions) and '''rcslog''' (describes changes made)

Revision as of 21:52, 3 August 2018

RCS (Revision Control System) is very useful for small groups wanting to operate on and update common files. It provides a way to "lock" files while changes are made and provides a method to document why changes where made.

For the best explanation see the man page:

man rcsintro

That is the best place to get an overview.

Typical use will be something like:

 co -l filename  # check out file from RCS with a lock
 # vi/edit filename (make changes)
 ci -m"I made this change" filename  # check file back in to RCS to remove lock... provide a message to explain changes
 co filename # after you do "ci" it won't be in present directory anymore, check it out without a lock

For groups wanting to share files, we recommend the directory with the files and RCS directory within have 2770 permissions with group ownership set for the group.

Useful tools include rcsdiff (show differences between different versions) and rcslog (describes changes made)