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

Re: inheriting enviroment variables by hooks

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Thu, 23 Nov 2017 15:45:27 +0100

On Wed, Nov 22, 2017 at 1:36 PM, <marcin_at_rhodecode.com> wrote:
> Hi,
> We're trying to build a generic integration system for RhodeCode that would
> also support Subversion. The problem we're now having is how to transmit
> some data during e.g commit operation from our system into running hooks.
> Our idea now is to use apache and set some special HTTP headers, and
> Enviroment variables when using the HTTP protocol.
> However after reading some threads, it seems that when subversion executes
> hooks it clears the enviroment variables. Is there ANY way to inherit some
> env set by apache?

I don't know if this is what you're looking for, but as of 1.8 there
is the mod_dav_svn directive SVNHooksEnv.

The svn book [1] contains the following description:
"Specifies the location of the Subversion repository hook script
environment configuration file. This file is used to describe the
initial environment in which repository hook scripts are executed. For
more on this feature, see the section called 'Hook script environment
configuration'." [2]

[1] http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.ref.mod_dav_svn
[2] http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.hooks.configuration

Received on 2017-11-23 15:45:55 CET

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