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

Re: svn commit: r40222 - in trunk/subversion: include libsvn_repos

From: Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA_at_GMail.Com>
Date: Sat, 31 Oct 2009 02:21:41 +0100

2009-10-26 09:56:27 Julian Foad napisaƂ(a):
> Author: julianfoad
> Date: Mon Oct 26 01:56:27 2009
> New Revision: 40222
>
> Log:
> Add pre-obliterate and post-obliterate hooks scripts, but don't yet use them.
> Add the code to create templates for them at repository creation time, and
> functions to run them, but no calls to the latter.
>
> * subversion/include/svn_repos.h
> (svn_repos_pre_obliterate_hook, svn_repos_post_obliterate_hook): New
> functions.
>
> * subversion/libsvn_repos/hooks.c
> (check_hook_result): Support the obliterate hooks. (Only pre-xxx hooks are
> mentioned explicitly in this function.)
> (svn_repos__hooks_pre_obliterate, svn_repos__hooks_post_obliterate): New
> functions, modeled on svn_repos__hooks_pre/post-revprop-change().
>
> * subversion/libsvn_repos/repos.c
> (svn_repos_pre_obliterate_hook, svn_repos_post_obliterate_hook): New
> functions, modeled on svn_repos_pre/post_revprop_change_hook().
> (create_hooks): Add sections to generate pre/post-obliterate template
> scripts.
>
> * subversion/libsvn_repos/repos.h
> (SVN_REPOS__HOOK_PRE_OBLITERATE, SVN_REPOS__HOOK_POST_OBLITERATE): New.
> (svn_repos__hooks_pre_obliterate, svn_repos__hooks_post_obliterate): New.
>
> Modified:
> trunk/subversion/include/svn_repos.h
> trunk/subversion/libsvn_repos/hooks.c
> trunk/subversion/libsvn_repos/repos.c
> trunk/subversion/libsvn_repos/repos.h
>
> Modified: trunk/subversion/include/svn_repos.h
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/include/svn_repos.h?pathrev=40222&r1=40221&r2=40222
> ==============================================================================
> --- trunk/subversion/include/svn_repos.h Mon Oct 26 01:41:52 2009 (r40221)
> +++ trunk/subversion/include/svn_repos.h Mon Oct 26 01:56:27 2009 (r40222)
> @@ -477,6 +477,20 @@ const char *
> svn_repos_post_revprop_change_hook(svn_repos_t *repos,
> apr_pool_t *pool);
>
> +/** Return the path to @a repos's pre-obliterate hook, allocated in
> + * @a pool.
> + */
> +const char *
> +svn_repos_pre_obliterate_hook(svn_repos_t *repos,
> + apr_pool_t *pool);
> +
> +/** Return the path to @a repos's post-obliterate hook, allocated in
> + * @a pool.
> + */
> +const char *
> +svn_repos_post_obliterate_hook(svn_repos_t *repos,
> + apr_pool_t *pool);
> +

You should add '@since New in 1.7.' to doc strings of these functions.

-- 
Arfrever Frehtes Taifersar Arahesis
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2413166

Received on 2009-10-31 02:19:28 CET

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