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

Re: Author name modification on the fly

From: Mark Phippard <markphip_at_gmail.com>
Date: Sun, 19 Apr 2009 10:52:33 -0400

On Sun, Apr 19, 2009 at 8:24 AM, Grégory ROMÉ <gregory.rome_at_gmail.com> wrote:

> I deployed a subversion server using apache and kerberos to authenticate the
> users. The problem with kerberos is that the username is long, it includes
> the kerberos realm. It's also a problem because I plan to deploy a slave
> server wich will use another authentication scheme and I would like to keep
> the log homogeneous.
> Is it possible to modify the author name (by removing the realm) with a
> hook?

You can either use a pre-commit hook to change the author name in the
TXN for the commit or a post-commit hook to change the revprop after
the commit finishes. The pre-revprop-change hook would have to be
enabled and allow you to do the latter.

Using the post-commit hook would be the easiest way and would be how I did it.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1808156
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-19 16:53:38 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.