[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hitory of the tags

From: Pierre Asselin
Subject: Re: hitory of the tags
Date: Mon, 27 Nov 2000 12:33:19 -0700

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


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

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

exit 0;

Pierre Asselin
Westminster, Colorado

reply via email to

[Prev in Thread] Current Thread [Next in Thread]