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

Re: [PATCH] Issue #763

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-07-15 18:27:03 CEST

Justin, just FYI:

Since some more thought about how to handle post-commit hook errors is
probably needed, we should defer this patch until after Alpha. So
that's why the deafening silence right now :-). (The patch is not
incorrect, just doesn't go as far as it could, as you pointed out
yourself.)

-K

Justin Erenkrantz <jerenkrantz@apache.org> writes:
> This patch fixes Issue #763, BUT it doesn't print out the error
> message. What would be nice is if the error message were still
> printed, but the error wasn't treated as fatal.
>
> Another potential solution would be to have run_post_commit_hook
> error a certain code that callers to svn_repos_fs_commit_txn would
> know that the commit succeded, but post-commit failed. -- justin
>
> * subversion/libsvn_repos/hooks.c:
> (svn_repos_fs_commit_txn): Do not wrap run_post_commit_hook around
> SVN_ERR, so that post-commit errors are not treated as fatal.
>
> Index: ./subversion/libsvn_repos/hooks.c
> ===================================================================
> --- ./subversion/libsvn_repos/hooks.c
> +++ ./subversion/libsvn_repos/hooks.c 2002-07-12 21:12:41.000000000 -0700
> @@ -200,7 +200,7 @@
> SVN_ERR (svn_fs_commit_txn (conflict_p, new_rev, txn));
>
> /* Run post-commit hooks. */
> - SVN_ERR (run_post_commit_hook (repos, *new_rev, pool));
> + run_post_commit_hook (repos, *new_rev, pool);
>
> return SVN_NO_ERROR;
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 15 18:38:42 2002

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

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