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

Changing svn:author

From: Greg Thomas <thomasgd_at_omc.bt.co.uk>
Date: 2006-01-13 11:44:05 CET

We are using Active Directory to authenticate users. Most of our
applications use the AD login id (cn) as a user id. However, this is a
long sequence on meaningless numbers. So, svn repository uses the
email address as a user id - so that svn diff/log/etc. shows something
meaningful.

However, as everything else uses the login id, it's beginning to get a
bit confusing when users authenticate, as their natural tendency is to
use their cn.

I suddenly realised that it would be easy to use a post-commit hook to
change the svn:author revprop from the cn to an email address. Users
could use the cn to login as they are used to, and the log messages
etc. would have a sensible svn:author. As a byproduct, it would also
allow us to use NTLM authentication, if I can get that working on UNIX
Apache.

However, I was wondering if there would be any drawbacks to this; in
particular, if a user has a svn:lock on a file, and the post-commit
hook changes the svn:author, will they lose the lock - or is the lock
held by the wc rather than the user? Are there any other drawbacks
that I may have missed?

TIA,

Greg

-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 13 11:51:04 2006

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.