On Thu, Nov 23, 2017 at 4:12 PM, <mar...@rhodecode.com> wrote: > > 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.
It seems that's not possible currently (I've checked with some other devs on #svn-dev on freenode IRC). There are some httpd modules that support injecting "environment variables" (in the httpd definition of that term [1]), but mod_dav_svn doesn't. If you need this, this would have to be discussed / developed as a new feature, I believe. If you're interested in that, you're very welcome to drive such a feature (starting by discussing what it should look / behave like). We're always looking for new contributors ;-). One other suggestion that came from Stefan Sperling on IRC was: "ephemeral properties". These are some properties that are automatically injected by mod_dav_svn as special properties in a transaction, available in the pre-commit hook, but automatically removed when the transaction gets promoted to a revision. Currently there are two such properties: svn:txn-client-compat-version svn:txn-user-agent See svn_props.h [2]. But I'm guessing those two existing properties are not sufficient for you. [1] http://httpd.apache.org/docs/current/env.html [2] http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_props.h?revision=1718912&view=markup#l685 -- Johan