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

Re: commit hooks - is there a hook which is called after commit even if its not successful

From: Trent Nelson <trent_at_snakebite.org>
Date: Tue, 6 Mar 2012 06:26:47 -0800

On 2/23/12 10:50 AM, "Torsten Krah" <tkrah_at_fachschaft.imn.htwk-leipzig.de>
wrote:
>
>In theory yes it would work to do the same thing again in post-commit -
>but pre-commit already did all the work before. Would be nice if there
>would be no need to parse and analyze things twice, may take time and
>resources depending on the commit size.

This was added in r1240856:
http://svn.apache.org/viewvc?view=revision&revision=1240856

Post commit hooks will now be invoked with the pre-commit's txn name. Do
your preparation during pre-commit, persist it in some way, keyed by the
txn name, then apply it during post-commit.

(This doesn't take care of periodically cleaning failed preparation
attempts, and nor should it.)

Regards,

        Trent.
Received on 2012-03-06 15:27:24 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.