[Top][All Lists]

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

Re: rtag/taginfo/posttag script to send one email

From: Mark D. Baushke
Subject: Re: rtag/taginfo/posttag script to send one email
Date: Fri, 04 Nov 2005 15:53:14 -0800

Hash: SHA1

Jim Searle <address@hidden> writes:

> I've written scripts for taginfo & posttag triggers. The taginfo script
> writes the last seen directory/file to a temporary file, and the posttag
> script keeps gathering up file information until the last directory/file is
> seen.   These scripts are similar to the commmitinfo & loginfo scripts other
> use, which are commonly called commitcheck and log_accum.
> The taginfo/posttag scripts work perfectly for the 'cvs tag' command.  But
> now I find the behavior of the 'cvs rtag' command is different.  For example
> if you run:
> - cvs tag dir/a dir/b dir2/c
> This will call the following:
>  - taginfo dir/a dir/b
>  - taginfo dir2/c
>  - posttag dir/a dir/b
>  - posttag dir2/c
> So this works as I expected.  Since taginfo is called on all files before
> posttag is called, the posttag is able to know when it hits the last file so
> it can send the email.
> But, when you run:
> - cvs rtag dir/a dir/b dir2/c
> It will call the following:
>  - taginfo dir/a
>  - posttag dir/a
>  - taginfo dir/b
>  - posttag dir/b
>  - taginfo dir2/c
>  - posttag dir2/c
> So there is not elegant way for posttag to know when it's at the last
> file....


> Does anyone know a good way to handle this so when someone says 'cvs rtag
> dir/a dir/b dir2/c' only one email is sent out immediately after the final
> tag operation?

The best suggestion I could give you would be to modify the src/rtag.c
file to introduct a new postrtag trigger.

If you do it, feel free to send a copy of it to the address@hidden
mailing list. The patch would best be in 'unified' format and include
tests for and the documentation.

        Good luck,
        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

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