[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: Ramachandran, Vishwanath(IE10) <Vishwanath.Ramachandran_at_Honeywell.com>
Date: Tue, 5 May 2009 16:00:24 +0530

Hello There

 

Thanks for the reply

 

Am able to edit the log message, but author still shows EID.Please see
the screen shot

Can I have name there instead of e453531 .Hope to hear from you

 

 

 

 

Regards

R.R.Vishwanath

Desk: +91 80 26588360 Extn: 44211

Cell: +91 9632243577

 

-----Original Message-----
From: Campbell Allan [mailto:campbell.allan_at_sword-ciboodle.com]
Sent: Tuesday, May 05, 2009 3:30 PM
To: Ramachandran, Vishwanath(IE10)
Cc: users_at_subversion.tigris.org
Subject: Re: Log entries show Employee ID instead of name

 

 

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.

________________________________________________________________________
__________

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2067738

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

image002.jpg
Received on 2009-05-05 12:33:10 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.