Name
watch — Synonyms: none
Synopsis
cvs [cvs-options] watch {on|off|add|remove} [-lR] [-aaction] [files...]
Sets files to be watched or adds users to the file watch list. Users
who are watching a file are notified via the script in the
notify file in the repository’s
CVSROOT directory when other users perform
specific actions. Chapter 5 explains uses of the
cvs watch family of commands.
Tip
CVS does not notify you of your own changes.
See also edit, editors,
unedit, and watchers.
Command options
-
onandoff The
onandoffsubcommands control whether the file or files are marked as being watched. If a file is marked as being watched, CVS sets it as read-only when it is checked out of the repository. Without this read-only setting, your developers might forget to usecvs editwhen editing a file.If the argument is a directory, all current files in the directory and all new files added to that directory in the future are set as being watched.
The
onandoffsubcommands set whether a file is watchable, but they do not set who is watching it.-
addandremove Use the
addandremovesubcommands to set or remove files you want to watch. Use the-aoption to specify which actions you want to be notified of.The
addandremovesubcommands set whether or not you are watching a file.- -a
action Notify the user when the designated actions occur to the file. Each
-adesignates one possible action. The-aoption can be repeated to designate multiple actions. The-aoption is usable only with theaddand ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access