CVS administrative files
A number of administrative files used to control how CVS works are kept in the central CVS repository. Two of these files, notify and users, are used to manage the watch-based notification process:
- notify
The standard notify file contains a line like this:
ALL mail %s -s "CVS notification"
The
ALLcauses the formula described here to be used for any notification requirements (an alternative toALLis a regular expression to match the directory name in which the edit causing the notification is being carried out).The rest of the line is the formula to use to send the notification. It is a simple invocation of the mail command, specifying a subject line (
-s "CVS notification"). The%sis a placeholder that CVS replaces with the address of the notification’s intended recipient. The actual notification text, generated by CVS, is piped into the mail command via STDIN.- users
The users file contains a list of notification recipient addresses:
dj:dj.adams@pobox.com piers:pxharding@ompa.net robert:robert@shiels.com ...
This is a mapping from the user IDs (
dj,piers, androbert) of the CVS participants, local to the host where the CVS repository is stored, to the addresses (dj.adams@pobox.com, pxharding@ompa.net,and robert@shiels.com) that are used to replace the%sin the formula described in the notify file.
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