When I tried to change the log message I got an error: "ask the administrator to create a pre-revprop-change hook"

After searching on google, now I found a simple solution:

There is an example script in the /hooks/pre-revprop-change.tmpl file of your target repository. However, this script is a Unix shell script and will not work under Windows. 

The simple solution is just to create a file named pre-revprop-change.bat containing the single line:

@exit 0

and save this file file in the /hooks directory of the target repository. Problem solved.