[cvsspam-devel] tagging hooks for use with cvsspam

David Holroyd dave at badgers-in-foil.co.uk
Tue Nov 28 22:49:57 UTC 2006


On Wed, Aug 16, 2006 at 02:10:21PM -0400, Haroon Rafique wrote:
> Secondly, I have developed some hooks for use with taginfo/posttag which 
> allow notifications whenever tagging events happen. If there is any 
> interest, then I can either post to the mailing list (if list accepts 
> attachments) or publish on a website for download.
> 
> Caveats:
> 
> * This is my first attempt at ruby ever. I decided to write in ruby since
>   I was really duplicating most of the logic already present in the
>   existing scripts. So please be gentle if and when you do provide
>   feedback.
> 
> * I am using cvs 1.12.12. From what I understand posttag hook was only
>   added in 1.12.10. My hooks will *NOT* work with cvs 1.11.x.
>   Theoretically these hooks should work with 1.12.10+
> 
> * You will get one email for each tagging event performed with a "cvs tag"
>   command. However, when using a "cvs rtag" command (which I have never
>   used), I have been told that the sequence in which the taginfo and
>   posttag hooks run is once per directory. So you will get as many emails
>   as the number of involved directories (again, I haven't tried this with
>   "cvs rtag" - just speculating)

Do your scripts use the same kind of logic as CVSspam's
commit-processing, or did they make the tagging hooks a bit less odd?

I've thought of having a cron job or background process of some sort to
try and batch events where CVS simply just doesn't provide the info to
link them as they happen (e.g. addition of directories, IIRC).  I could
never be bothered to implement that though.

It would be great to see your work!  Sorry about the slow reply!


ta,
dave

-- 
http://david.holroyd.me.uk/



More information about the cvsspam-devel mailing list