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

Re: Committing host as revision property

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Mon, 21 Apr 2008 17:01:01 -0500

On Apr 21, 2008, at 11:15 AM, num3boc wrote:

> Kenneth Porter wrote:
>> It would be useful to know from which host a commit was performed.
>> Has
>> this
> It's been a year since this thread was last posted too.. Any more
> work
> going on along this line?
> Logging which computer a commit occurred from is exactly what I'd
> like to
> see also.
> I'm not much of a texted based programmer and not very UNIX savvy. If
> someone's implemented this successfully, I'd love to know how.

If serving the repository via Apache, you can extract the client's IP
address and/or hostname from the Apache logs. The high-level Apache
log [1] and perhaps my svn-hook-dispatcher [2] could help further (if
you modify the dispatcher to also handle post-commit events, and
modify the log string passed to the hook dispatcher to include the
client's IP address, and modify the hook dispatcher to pass the IP
address to the hook scripts).

If serving with svnserve I know of no solution until enhancement 2409
is implemented. [3]

If serving via the file protocol the hook scripts will be running on
the client machine, since there is no server, so in the hook script
the IP address of the local machine will be the IP address of the
client. But you shouldn't be serving via the file protocol for
anything more than testing purposes with a single developer on a
single machine.

[1] http://subversion.tigris.org/svn_1.3_releasenotes.html#dav-logging

[2] http://www.ryandesign.com/svnhookdispatcher/

[3] http://subversion.tigris.org/issues/show_bug.cgi?id=2409

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-22 08:31:42 CEST

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