You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Trent Nelson <tr...@snakebite.org> on 2012/03/06 15:26:47 UTC

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


On 2/23/12 10:50 AM, "Torsten Krah" <tk...@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.