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

Re: Real Names in Log Messages

From: Kyle George <kgeorge_at_tcpsoft.com>
Date: 2007-08-17 00:54:17 CEST

On Wed, 15 Aug 2007, Jamie Jackson wrote:

> On 8/14/07, D.J. Heap <djheap@gmail.com> wrote:
>> On 8/14/07, Jamie Jackson <myspamb8@gmail.com> wrote:
>> [snip]
>>> Also, This isn't for presentation, we'd like names for day to day SVN
>>> operations. It would be nice to have real names at a glance instead of
>>> looking up some obscure employee ID in the corporate directory. (For
>>> all the same reasons that, say, we have domain names, instead of
>>> trying to memorize IP addresses.)
>>> Has anybody done this sort of hack?
>> It shouldn't be too hard to do in a hook, I would think. Lookup the
>> real name and then add it to the log message or author property.
> Okay, I'll look into this. In the meantime, if anyone has a script or
> snippets to share, I'd appreciate it.

I wrote an apache2 module that lets users authenticate with their username
per whatever authn scheme is being used and then maps them to another
username that subversion sees. I think this would do what you want. I'm
using this in production w/ no problems. I posted it to dev@ a few months


You could also use the svn-tweak-author.py script in contrib to
periodically remap the names, perhaps in a hook as suggested. The
difference is that I use the module to map before the svn path-based
authorization module sees the username. So if I log in as xyz with my
module in place and a mapping of xyz --> abc configured, authzsvn sees abc
as the username and so does the rest of the svn server-side (i.e., the
svn:author revprop).

Kyle George
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 17 00:52:17 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.