Monday, March 17, 2008

The watch Command

The watch command specifies a watch on files. This command is used when you want to view the changes made to a file. To use this command, you need to use the following subcommands:

on: Indicates that a file is being watched. Watched files are created with read-only attributes on checkout. You need to use the edit command to make changes to the file.

off: Indicates that a file is no longer being watched.

add: Adds files to the list of file watchers. The changes made to the file are known when a change is made using the edit or unedit commands.

remove: Removes files from the list of file watchers. You are not informed about changes are made to the file. For example, the following command sets a watch on the new.txt file:

$ cvs watch on new.txt

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home