- publishing free software manuals
Version Management with CVS - the CVS manual
by Per Cederqvist et al.
Paperback (6"x9"), 216 pages, 8 figures
ISBN 0954161718
RRP £19.95 ($29.95)

Get a printed copy>>>

B.6 Taginfo

The ‘taginfo’ file defines programs to execute when someone executes a tag or rtag command. The ‘taginfo’ file has the standard form for trigger scripts (see section B.3 The Trigger Scripts), where each line is a regular expression followed by a command to execute (see section B.3.1 The common syntax). The arguments passed to the command are, in order, the tagname, operation (add for tag, mov for tag -F, and del for tag -d), repository, and any remaining are pairs of filename revision. A non-zero exit of the filter program will cause the tag to be aborted.

Here is an example of using the ‘taginfo’ file to log tag and rtag commands. In the ‘taginfo’ file put:

ALL /usr/local/cvsroot/CVSROOT/loggit

Where ‘/usr/local/cvsroot/CVSROOT/loggit’ contains the following script:

echo "$@" >>/home/kingdon/cvsroot/CVSROOT/taglog
ISBN 0954161718Version Management with CVS - the CVS manualSee the print edition