[Intro to UNIX Software Development]

RCS FOR REVISION CONTROL


Why should one use RCS?


Note for usage on Athena

  • On Athena do add -f watchmaker first to get more recent versions on all platforms
  • Default version in /usr/athena/bin doesn't deal with timezones properly


    Basic concepts


    Basic commands

    ci
    checks in and removes existing copy

    ci -u
    checks in and releases lock (file becomes read-only)

    ci -l
    checks in and retains lock (file is rw)

    co
    checks out with no lock (read-only)

    co -u
    checks out with no lock (read-only)

    co -l
    checks out and obtains exclusive lock

    rlog
    look at log

    rcsdiff
    compare revisions and create patches. Example:
    	rcsdiff -r1.4 -u foo.c
    	

    rcs -u
    break locks

    rcs
    do random things to rcs file


    Lots of other options


    Logs and headers in files


    Reverting to old versions without dealing with branch messiness


    Diffs and patches


    Alternatives


    [BACK][FORWARD]


    Prepared by Erik Nygren (nygren@mit.edu) and Mike Whitson (mwhitson@mit.edu)