[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: Russell E Glaue <rglaue_at_cait.org>
Date: 2007-05-09 17:17:08 CEST

I like this idea.

As a work around, how about this.

I see this string in the apache logs (see log excerpt below).
Is this the transaction ID?
If so, then during the pre-commit we can match the transaction ID in the apache
log and pull out the client hostname/ipnumber.

Assuming we're using Apache with dav_svn, apache receives HTTP request like these:
- - jsmith [06/May/2007:04:24:03 -0500] "MKACTIVITY
/svn/MyRepos/!svn/act/97c826d2-565b-344b-abac-b3242553bd93 HTTP/1.1" 201 326 "-"
"SVN/1.3.1 (r19032) neon/0.25.5" - jsmith [06/May/2007:04:24:24 -0500] "PUT
HTTP/1.1" 204 - "-" "SVN/1.3.1 (r19032) neon/0.25.5" - jsmith [06/May/2007:04:24:39 -0500] "DELETE
/svn/MyRepos/!svn/act/97c826d2-565b-344b-abac-b3242553bd93 HTTP/1.1" 204 - "-"
"SVN/1.3.1 (r19032) neon/0.25.5"


Karl Fogel wrote:
> Kenneth Porter <shiva@sewingwitch.com> writes:
>> It would be useful to know from which host a commit was performed. Has
>> this been requested before?
> Yes, occasionally. It's never been compelling enough for us to try to
> put it in Subversion (a lot of work for a feature only a few people
> want, and which they probably don't need urgently). But, you might be
> able to fake it with some kind of commit wrapper, one that, say, puts
> a special line in the log message, stating the hostname, and then a
> pre-commit hook on the server side could look for that line...
> That way if someone tries to commit without using the wrapper, the
> commit would get rejected.
> -Karl

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 9 17:17:30 2007

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.