[Top][All Lists]

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

Re: taginfo file

From: Rickard Parker
Subject: Re: taginfo file
Date: Mon, 23 Jul 2001 11:52:43 -0400

I have not had a problem getting large numbers of tagged files logged.
I'm using CVS 1.11.1p1 on Red Hat Linux release 6.2

In my taginfo file I have the directive:
    DEFAULT /cvsroot/SCRIPTS/record_tagging

Here are some **PIECES** of code I have in
/cvsroot/SCRIPTS/record_tagging, a Bourne shell script.

    cat << EOT
    $DATE $USER $@

    # Now log the tag or build info
    if $LOG_TAG_MSG
        make_entry_for_taglog $@ >> $TAG_LOG

    # Notify release engineering (and others) when
    # certain tags are played with
        make_entry_for_taglog $@ | \
            /usr/bin/mail -s "Tagging of $tagname by $USER" "$mail_list"

The log and mail message get a string like this:
    20010723_112315 rparker TAGNAME add /cvsroot/releng README 1.1 file2
1.3 file3 1.1 file4 1.3 file5 1.3 file6 1.1

This record_tagging script also checks what the tagging action is and
whther it is working on a branch or a special tag (we use naming
conventions to make checking easier).  The script will forbid users
from doing things like deleting tags used for builds.

   Rick Parker

Olaf Meding wrote:
> How can I get at all the file names and their rev. numbers tagged?
> Assume I do a "cvs tag tagname".  This will tag all files in that directory.
> Now, the taginfo file only gets 10 command line arguments, $0 thru $9.  The
> first file tagged would be $4 and its rev $5.  This means that I only get
> the first 3 files and their rev. numbers.
> I need all file names and rev. numbers.  Is there a way?

reply via email to

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