[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: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Sat, 13 Aug 2011 17:14:46 -0500

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.

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.
Received on 2011-08-14 00:15:28 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.