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

Re: [TSVN] how to change log message in local repository

From: Rainer Müller <mueller_rainer_at_gmx.de>
Date: 2005-04-10 20:47:01 CEST

D'Arcy Rittich wrote:
> In case this helps other Windows users, the simplest solution is to
> create two files named pre-revprop-change.bat and
> post-revprop-change.bat in the hooks directory. That's it.

No. You only need pre-revprop-change.bat which has to return exit code 0
if the action should be allowed and 1 if not.
Here is my pre-revprop-change.bat hook script for use on Windows:

[snip]

set SVN_REPOS=%1
set SVN_REV=%2
set SVN_USER=%3
set SVN_PROPNAME=%4

IF "%SVN_PROPNAME%" == "svn:log" exit 0
REM uncomment this if you also want to allow changing of author
REM IF "%SVN_PROPNAME%" == "svn:author" exit 0

echo Property %SVN_PROPNAME% cannot be changed >&2
exit 1

[snap]

HTH, Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Apr 10 20:51:37 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.