[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: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-04-10 23:38:29 CEST

D'Arcy Rittich wrote:
>> 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]

> Hmm, mine works fine with zero-byte files.

Well a zero byte file is effectively an unconditional exit 0 with no
checks at all. If you are the only developer, and you only use TSVN then
that won't matter, but in a team setting it would be a security hole
because anyone at all could change any revision property.

BTW, using this hook in a Windows environment _is_ documented in the
TSVN manual. Look in chapter 3, server setup. Or 'hooks' in the index.


  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Apr 10 23:37:29 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.