Checking Out a File Revision

Use co to check out a revision of a file from an RCS repository. To check out the latest revision of a file that you intend to edit (and to check in later as a new revision), use the −l (for "lock") option. Locking a revision in this fashion prevents overlapping changes being made to the file should another revision be accidentally checked out before this revision is checked in.

· To check out the latest revision of the file `novel' for editing, type:

$ co −l novel RET

This command checks out the latest revision of file `novel' from the `novel,v' repository, writing it to a file called `novel' in the current directory. (If a file with that name already exists in the current directory, co asks whether or not to overwrite the file.) You can make changes to this file and then check it in as a new revision .You can also check out a version of a file as read only, where changes cannot be written to it. Do this to check out a version to view only and not to edit. To check out the current version of a file for examination, type co followed by the name of the file.

To check out the current revision of file `novel', but not permit changes to it, type:

$ co novel RET

This command checks out the latest revision of the file `novel' from the RCS repository `novel,v' (either from the current directory or in a subdirectory named `RCS'). To check out a version other than the most recent version, specify the version number to check out with the `−r' option. Again, use the `−l' option to allow the revision to be edited.

To check out revision 1.14 of file `novel', type:

$ co −l −r1.14 novel RET

NOTE: Before checking out an old revision of a file, remember to check in the latest changes first, or they may be lost.

Posted on: 16/12/2009

If you want to leave a comment please Login or Register
How to backup your data using rsync......
Understanding autoconf......
The Basics of fdisk......
Accessing Memory Using DMA......
The fd Directory......