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

Re: pre-revprop-change hook

From: Andreas Stieger <andreas.stieger_at_gmx.de>
Date: Wed, 12 Jan 2011 16:03:48 +0000

Hello,

On 07/01/2011 23:59, David Goldsmith wrote:

> pre-revprop-change.tmpl to allow log msg editing

The following pre-revprop-change.cmd will allow modification of svn:log
revision properties on your platform, disallowing everything else:

@ECHO OFF
set repos=%1
set rev=%2
set user=%3
set propname=%4
set action=%5

IF %action% EQU M GOTO CONT1
GOTO FAIL
:CONT1
IF %propname% EQU svn:log GOTO OK
:FAIL
echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1
:OK
exit 0

With kind regards,
Andreas Stieger

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2697620

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-01-12 17:03:50 CET

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