Subversion: Allow changing log messages

I've accidentally committed some changes to the source control without entering a log message, and when I tried editing the log message I got this error message:

Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook


After googling a bit I found the solution:

Go to the "hooks" directory in the root of the repository, create a file named "pre-revprop-change.bat" with the following lines:

set PROPNAME=%4

if "%PROPNAME%" == "svn:log" (
exit /b 0
)

exit /b 1


This script will allow changing the "svn:log" property thus allowing users to rename commits.

Comments

Popular posts from this blog

Restart the Windows File Sharing Service to fix weird problems

WPF, ImageSource and Embedded Resources

SharpDevelop dark color scheme