You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by num3boc <NU...@HOTMAIL.COM> on 2008/04/21 16:15:11 UTC

Re: Committing host as revision property


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.

Thanks,
James




-- 
View this message in context: http://www.nabble.com/Committing-host-as-revision-property-tp10384885p16808161.html
Sent from the Subversion Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Committing host as revision property

Posted by Ryan Schmidt <su...@ryandesign.com>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org