Larry Jones writes:

> CVS doesn't directly track the date that a tag is applied to a file (and
> note that the dates in separate files might be quite different).  CVS
> does record rtag operations in the history file, but not tag.

That's true, but you can capture tag commands with the taginfo hook.
Here's my quick-and-dirty taginfo:

----------------------------------  taginfo -----------------------------
DEFAULT /usr/local/cvsroot/CVSROOT/taglogger
-------------------------------------------------------------------------

and here's the equally quick-and-dirty taglogger script that it invokes.
Since I chose to keep it under CVSROOT, it is listed in the checkoutlist.
The script just appends the tag data to a long file, and a subset of the data
to a short file.  The short file would probably be enough for Adrian.

----------------------------------- taglogger ---------------------------
#! /bin/sh
# $Id: taglogger,v 1.1 1999/02/21 22:45:37 pa Exp $
# default script invoked by taginfo

destdir=/home/pa/cvsdata
short=$destdir/cvstags.short
long=$destdir/cvstags.long

(
    /bin/echo -n $3 $1 \($2\) "   "
    date
) >> $short

(
    /bin/echo
    /bin/echo -n $3 $1 \($2\) "   "
    date
    shift 3
    while [ $# -gt 0 ]; do
        /bin/echo '\t' $1 $2
        shift 2
    done;
) >> $long

exit 0;
-------------------------------------------------------------------------

-- 
Pierre Asselin
Westminster, Colorado


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to