[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: <marcin_at_rhodecode.com>
Date: Thu, 23 Nov 2017 16:12:56 +0100

Hi Johan,
I didn't know about that setting thanks for the pointer.
However It looks like it's a way to set an alternative path to the hooks-env file. Which is global per repository. What we're trying to solve is to have a dynamic env that would inherit some variables per request. e.g IP address of client who is doing svn commit. There are bunch of stuff we'd like to pass along.
-- Marcin Kuzminski RhodeCode, Inc.
Enterprise Source Code Management. Unified. Contact us: Web [https://rhodecode.com/] • Twitter [https://twitter.com/rhodecode] • Community [http://community.rhodecode.com/] • Slack [https://rhodecode.com/join]
On Thu, Nov 23, 2017 at 15:45, Johan Corveleyn <jcorvel_at_gmail.com> wrote:
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 16:31:49 CET

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.