Hello Ryan
I fixed the problem by writing a pre-lock hook in the hook script
This script will tell who locked the file by the "name"
And also on the log message, I get names instead of EID; this is done by
a small change in post-commit
Regards
R.R.Vishwanath
Desk: +91 80 26588360 Extn: 44211
Cell: +91 9632243577
-----Original Message-----
From: Ramachandran, Vishwanath(IE10)
Sent: Friday, June 12, 2009 1:33 PM
To: 'Ryan Schmidt'
Cc: Subversion Users
Subject: RE: Is it possible to have a trigger script replace user ID
(eid) with name in error messages?
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
Regards
R.R.Vishwanath
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?
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361589
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-12 15:10:18 CEST