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

Re: Log entries show Employee ID instead of name

From: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Tue, 5 May 2009 11:00:12 +0100

On Tuesday 05 May 2009, Ramachandran, Vishwanath(IE10) wrote:
> Hi There
>
> Thanks for the reply, but a few doubts
>
> Please find the script below
>
>
> REPOS="$1"
> REV="$2"
> USER="$3"
> PROPNAME="$4"
> ACTION="$5"
>
> if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
>
> echo "Changing revision properties other than svn:log is prohibited" >&2
> exit 1
>
> for the above script, EID comes instead of name
>
> but if i change the script to "$PROPNAME" = "svn:author" , name gets
> populated, but i will not be able to edit the log message
>
> Please share your thoughts as how to perform both the operations
> simltaneously
>
> Regards
> R.R.Vishwanath
> Desk: +91 80 26588360 Extn: 44211
> Cell: +91 9632243577
>
>

That looks like the pre-revprop hook script. Just change it so that the
condition reads like the following (on one line)

if [ "$PROPNAME" = "svn:log" -o "$PROPNAME" = "svn:author" ]; then exit 0; fi

and update the echo below it accordingly. The command 'man test' will explain
what is happening between the brackets if you want to know the details.

I'm not sure I want to know what you plan to do. Usernames tend to be unique
unlike names. So tracking down who made a commit is easier with a username
even if it isn't initially obvious. Be aware that some third party
integration tools may also expect a username in the svn:author property to
function correctly.

Campbell
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company
registered in Scotland with registered number SC143434 and whose
registered office is at India of Inchinnan, Renfrewshire, UK,
PA4 9LH) which is part of the Sword Group of companies.

This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you,
please inform us and then delete it. If you are not the intended
recipient(s), the use, disclosure, copying or distribution of any
information contained within this email is prohibited. Messages to
and from us may be monitored. If the content is not about the
business of the Sword Group then the message is neither from nor
sanctioned by us.

Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Received on 2009-05-05 12:02:18 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.