Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To enable the revision property modification, you need to create a pre-revprop-change hook script. Can read about it here: <a href="http://svnbook.red-bean.com/en/1.0/ch05s02.html" rel="noreferrer">http://svnbook.red-bean.com/en/1.0/ch05s02.html</a> (look for Hook Scripts section).</p> <p>For Windows, here's a link to an example batch file that only allows changes to the log message (not other properties): <a href="http://ayria.livejournal.com/33438.html" rel="noreferrer">http://ayria.livejournal.com/33438.html</a>. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the /hooks subdirectory for your repository.</p> <pre><code>@ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not "%propertyName%" == "svn:log" goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not "%action%" == "M" goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f "tokens=*" %%g in ('find /V ""') do ( set bIsEmpty=false ) if "%bIsEmpty%" == "true" goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. &gt;&amp;2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. &gt;&amp;2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. &gt;&amp;2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload