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

Re: Subversion/mod_dav_svn questions

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Wed, 13 Feb 2008 02:45:33 -0600

On Feb 12, 2008, at 17:14, Chris Ross wrote:

> On Tue, 2008-02-12 at 13:40 -0600, Ryan Schmidt wrote:
>
>>>> It's too bad the repo name doesn't seem to be available as a
>>>> separate
>>>> variable anywhere. I had to parse it out of the URL.
>>>
>>> How did you do this, by the way? Were you able to get it into
>>> the log
>>> file, as I described my desire above?
>>
>> Yes, in a way. You can read about my method in the read-me file for
>> my svnhookdispatcher script:
>>
>> http://www.ryandesign.com/svnhookdispatcher/
>
> That seems to solve a slightly different problem.

Yes, but I wasn't asking you to use my script; I was recommending you
read the read-me file which accompanies my script, which explains the
technique I used to get the repository name to my script, which is
the bit of information you were asking how to get. The read-me
includes the log format for the Apache configuration file. You may
also want to read the script to see how that information is taken out
of the log and how the repository name is then obtained.

> And, the original
> problem you're solving doesn't exist any more, as subversion
> already has
> mechanisms for post-commit hook scripts, which is what I'm using now.

The problem my script solves *does* still exist. Yes, Subversion has
a post-commit hook. What it doesn't have is a post-update, post-
checkout, post-export or post-switch hook. That's what my script does.

> The problem I'm having is that that post-commit script, nor the
> mailer.py script I'm having it run, appear to be able to get to the
> repository name.
>
> I suppose I could set it in the environment from the post-commit
> script, and modify mailer.py to look in the environment for it. It
> just
> seems like mailer.py would already have a way to get to the bits that
> were the arguments to the post-commit script...
>
> Thanks much for your help! It did expose a new option...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-13 09:46:18 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.