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

RE: Problematic post-commit-hook / svnlook diff size

From: John Niven <jniven_at_bravurasolutions.com>
Date: Tue, 4 Nov 2008 07:50:11 +1100

> -----Original Message-----
> From: Carlos Peñas [mailto:cpenas_at_warp.es]
> Sent: Monday, 3 November 2008 20:44
> To: users_at_subversion.tigris.org
> Subject: Re: Problematic post-commit-hook / svnlook diff size
>
> Well not a clever one, but I'm now supressing the email
> sending if "svnlook diff | wc -c" gives a big count.
>
> The shame is that this command took 90 seconds to complete
> and reclaims about 600 Mb to execute. It is excessive but at
> least avoids sending 300Mb of diff file by mail, cutting down
> the time needed to complete a big commit
>
> There's better ways to doing this out there?

No more clever, but could you modify commit-email.pl to abort or not send the email if the *email* size becomes too large?

Incidentally, I seem to recall that commit-email.pl has been deprecated in favour of http://svn.collab.net/viewvc/svn/trunk/tools/hook-scripts/mailer/mailer.py?view=markup; it might be worth taking a look at mailer.py to see if that could more easily be adapted (I took a quick look and I couldn't see anything that controlled email size).

Cheers
John

>
> El Viernes, 31 de Octubre de 2008 20:50, Carlos Peñas escribió:
> > Hello.
> >
> > I'm running a subversion server with several projects. One
> of these is
> > big enoug to make eternal diffs on merges.
> >
> > When this occurs, a contributed script called commit-email.pl (I'm
> > using debian etch packaged subversion server) tries to send
> the diff
> > by mail, allocating excessive memory and depleting its resources.
> >
> > We want to keep these mails unless diff size grows beyond a fixed
> > amount of bytes.
> >
> > ¿There is a way to preview the diff size with svnlook or else?
> >
> > Thanks
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> > For additional commands, e-mail: users-help_at_subversion.tigris.org
>
> --
> Carlos Peñas San José
> Warp Networks S.L. http://www.warp.es
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-03 21:50:44 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.