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

RE: Enable administrator to modifiy log message of Repository

From: Ramachandran, Vishwanath(IE10) <Vishwanath.Ramachandran_at_Honeywell.com>
Date: Wed, 10 Jun 2009 15:32:46 +0530

Hi Ryan

Thank you for the script. That worked like a wonder :)

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: Wednesday, June 10, 2009 3:14 PM
To: Ramachandran, Vishwanath(IE10)
Cc: Subversion Users; Bob Archer; Tyler Roscoe; Campbell Allan
Subject: Re: Enable administrator to modifiy log message of Repository

On Jun 10, 2009, at 03:55, Ramachandran, Vishwanath(IE10) wrote:

> What I would like is only administrator of the repository should edit
> both the log message and author.
>
> Can you help in modifying the script to perform the above operation?

Ah, ok. Well, if "e383084" and "crowdadmin" are the administrators,
then I might write that this way:

#!/bin/sh

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$PROPNAME" = "svn:log" -o "$PROPNAME" = "svn:author" ]; then
        if [ "$USER" = "e383084" -o "$USER" = "crowdadmin" ]; then
                # allow this change
                exit 0
        fi
fi

# deny this change
echo "*************************************************" 1>&2
echo "UNAUTHORIZED ACCESS to change this property......" 1>&2
echo "Please contact Repository administrator(s)......." 1>&2
echo "*************************************************" 1>&2
exit 1

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-10 12:04:08 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.