[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[ALTERNATE PATCH] Limit size of emails sent using commit-email.pl

From: Branden Robinson <branden_at_deadbeast.net>
Date: 2005-01-24 06:26:44 CET

On Wed, Jan 12, 2005 at 02:13:01PM -0000, Max Bowsher wrote:
> VK Sameer wrote:
> >Hello,
> >
> >Minor patch to commit-email.pl.in to truncate large commit emails. I've
> >added two variables, one for difflines and one for the email body later,
> >not sure if that's overkill.
>
> Do we really need two? It seems overly complicated to me.
> I'd be perfectly happy with either one or the other, but I don't like the
> idea of both.

I'm attaching a patch I've been using for the Subversion repository of
Debian's XFree86 packages for several months.

It attempts only to limit the size of the outbound mail.

You can also review this diff and the patched script at the following
location:
  http://necrotic.deadbeast.net/tmp/commit-email.pl
  http://necrotic.deadbeast.net/tmp/commit-email.pl.diff

I'm also attaching my post-commit hook.

Here's a link to a recent example of the patched script working:
  Message-Id: <20050117225717.7F00C5C05D@necrotic.deadbeast.net>
  http://lists.debian.org/debian-x/2005/01/msg00238.html

-- 
G. Branden Robinson            |       The Rehnquist Court has never
Free Software Developer        |       encountered a criminal statute it
branden@deadbeast.net          |       did not like.
http://deadbeast.net/~branden/ |       -- John Dean


Received on Mon Jan 24 06:33:47 2005

This is an archived mail posted to the Subversion Dev mailing list.