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

RE: Is it possible to have a trigger script replace user ID (eid) with name in error messages?

From: Ramachandran, Vishwanath(IE10) <Vishwanath.Ramachandran_at_Honeywell.com>
Date: Fri, 12 Jun 2009 13:33:21 +0530

Hi Ryan

Users are identified by EID and they login with EID
The hook script shown below changes the EID to username
Svn: author performed this function, and the script which you have given
also worked, i.e. only administrators can perform edit log and author

And now, I wrote a pre-lock hook script, which gives me username instead
of EID too

Desk: +91 80 26588360 Extn: 44211
Cell: +91 9632243577

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2009b_at_ryandesign.com]
Sent: Friday, June 12, 2009 12:44 PM
To: Ramachandran, Vishwanath(IE10)
Cc: Subversion Users
Subject: Re: Is it possible to have a trigger script replace user ID
(eid) with name in error messages?

On Jun 12, 2009, at 01:31, Ramachandran, Vishwanath(IE10) wrote:

> In pre-revprop-change, this hook is enabled
> **********************************************************************

> **
> **
> if [ "$PROPNAME" = "svn:log" -o "$PROPNAME" = "svn:author" ]; then
> exit
> 0; fi
> echo "Changing revision properties other than svn:log is
> prohibited" >&2
> exit 1
> **********************************************************************

> **
> **
> And I author name while editing log, but here author can be edited.
> See the attachment!!
> So What I want now is wherever EID comes, it should convert into Name
> and I guess we can try writing a wrapper stating if the EID is this ..
> User is XYZ and sends that as log message.

I still don't understand your existing setup, so I can't suggest how
to modify it.

Where is the mapping that says EID "e12345" is equivalent to the name
"Ramachandran, Vishwanath"? Is it a text file, a database, a
directory system? How do you access this information?

If you are known to Subversion as "e12345", how is it that
"Ramachandran, Vishwanath" appears in the log in the screenshot you
showed? How are you accomplishing this?

Do you have user-based authorization in Subversion -- certain parts
of the repository that can only be used by certain users? If so, how
are users identified in the authorization file -- by EID or by name?


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-12 10:04:19 CEST

This is an archived mail posted to the Subversion Users mailing list.