[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-scm-interest
Subject: Re: [Kde-scm-interest] Post-commit hooks script
From: Oswald Buddenhagen <ossi () kde ! org>
Date: 2009-12-04 23:11:19
Message-ID: 20091204231119.GA5982 () ugly ! local
[Download RAW message or body]
On Fri, Dec 04, 2009 at 07:49:52PM +0100, Jean-Nicolas Artaud wrote:
> # One mail send for each CCMAIL
> for myMail in email_addresses
> mailIo = IO.popen("/usr/sbin/sendmail #{myMail}", 'w')
>
that's a bad idea. for one, each mesage has a separate message id, which
makes duplicate elimination not work. second, spawning a separate
sendmail for each mail is wasting resources.
as you are ignoring refs other than the currently updated one, you'll
re-send all mails when a branch from the same repo is merged.
you are entirely ignoring the existence of new refs, which will lead to
kinda interesting effects when someone creates a bugfix branch.
quite frankly, you did the trivial work. you can either do the hard
stuff and spend a lot of time on it or just wait for me to finish -
there are enough other things to do, and i'll do my script anyway, as i
a) need it for another project and b) want something generic for
submission to git upstream.
_______________________________________________
Kde-scm-interest mailing list
Kde-scm-interest@kde.org
https://mail.kde.org/mailman/listinfo/kde-scm-interest
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic