[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: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 10 Jun 2009 04:44:04 -0500

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=2360853

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-10 11:44:59 CEST

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