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

Re: Opening the repository hooks environment file

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 03 Apr 2013 12:25:03 +0100

Stefan Sperling <stsp_at_elego.de> writes:

> On Wed, Apr 03, 2013 at 02:58:56PM +0400, Ivan Zhakov wrote:
>> I think result_pool parameter should be replaced with pool member in
>> svn_repos_t structure.
> Or, as Philip suggested, we could replace the svn_repos_hooks_setenv()
> function with a new 'hooks_env_path' parameter to svn_repos_open().

With a pool in the structure we could cache the lazily created hash in
the structure as well. Then when running multiple hooks, pre- and post-
commit or pre- and post- unlock say, we would only parse the environment
file once.

Certified & Supported Apache Subversion Downloads:
Received on 2013-04-03 13:25:49 CEST

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