rcs the revision control system. to be covered… an rcs overview the rcs command set some useful...

14
RCS The Revision Control System

Upload: kristin-smith

Post on 04-Jan-2016

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

RCS

The Revision Control System

Page 2: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

To Be Covered…

• An RCS overview• The RCS command set• Some useful things• Where it can be used• Alternatives to RCS

Page 3: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

RCS Overview• RCS is for version management.• RCS allows you to manage and

maintain files/documents as they develop.

• RCS can maintain binary files as well as text files.

• Files can be developed by multiple users.

• All versions are stored as a single file.

Page 4: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

RCS Overview

RCS is…

• Open Source• Available for all

Linux/UNIX distros• Bundled with

most Linux distros• Free!

RCS is not…

• The be-all end-all version management tool

• Available for Windows (see WinRCS)

Page 5: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

RCS Commands

• Primary Commands:– ci # Check In– co # Check Out– rcs # set/change attributes of RCS

file

Page 6: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Example• The RCS file is

$ /home/fred/RCS/colours,v

• Working from /home/fred/$ co –l colours # Check out and lock a copy # of colours from the RCS file

• When done editing, check it back in$ ci colours

Page 7: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Example (cont’d)

• Add access for another user$ rcs –abarney colours#Now “barney” can check out, modify

and check in colours.#See the rcs and rcsintro man pages

for all rcs options.

Page 8: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Other RCS Commands• rlog # Summary header info from the

RCS file• ident # Extract keywords from RCS file

or working file• rcsdiff # Compare checked out file with

latest revision in RCS file• rcsmerge #Like merge, only using RCS

files (not checked out copies)• rcsclean #Removes all working copies

that have not been changed.

Page 9: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Useful RCS commands

Borrowing from the /home/fred/RCS/colours,v example (working in fred):

$ rcsdiff colours # compare# your working copy to the most# recent revision in the RCS# file

Page 10: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Useful RCS commands

rlog colours | more# View all revision header info# in the RCS file

ci -l colours# Check in and then check out# and lock your working version.# Handy for quickly setting a# checkpoint in development.

Page 11: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Useful RCS commandsident colours# View keyword values from your# working version.ident RCS/colours,v# View keyword values from your# entire RCS file.rcsclean colours# Remove all working files that # have not changed from the RCS # file’s latest revision.

Page 12: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Where To Use RCS

Small to Medium sized projects such as:• Script development for admins,

developers and users.• Document and documentation

development (how many versions of your resume do you have?)

• Program development• http://www.cs.purdue.edu/homes/

trinkle/RCS

Page 13: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Alternatives to RCS

• CVS – Concurrent Versions System– A superset of RCS– Concurrent multi-user– Can be used over a network– Manages entire directory hierarchies– Commonly preferred for large-scale

development– http://cvshome.org

• Pay-tools (‘nuff said)

Page 14: RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS

Summary

• RCS is free software• RCS is conveniently bundled for

Linux• RCS is easy to learn and use• RCS is a fully functional version

management system