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

Re: Detecting where the commit has been send from

From: wimpunk <ybwdlapvxvun_at_spammotel.com>
Date: Tue, 16 Aug 2011 23:01:08 +0200

On 2011-08-13, Ryan Schmidt <subversion-2011a_at_ryandesign.com> wrote:
>
> On Aug 11, 2011, at 15:50, wimpunk wrote:
>
>> I'm wondering if there is a way to detect where the commit has been
>> send from while doing a postcommit. Is there a way to do this?
>
> What do you mean by "where"? You should be able to figure out the username of the person who committed the change. If you want more info like their IP address then that is not available.
>

I was trying to find the IP address... so it looks doesn't work by
default.

> My svnhookdispatcher adds extra hooks to Subversion by parsing the mod_dav_svn log; you might be able to hack it to parse out the IP address and send that to a modified post-commit hook, assuming you are serving your repository with apache.
>
> http://ryandesign.com/svnhookdispatcher/
>
> It's been years since I wrote svnhookdispatcher; since then, svnserve has gained a log too. Not sure if IP addresses are logged there.
>

I'll take a look, maybe I can modify it to get the IP address...

>
>
Received on 2011-08-16 23:08:52 CEST

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.