After submitting the file in SVN, the comments are incomplete or not clear enough, and you want to modify the comments. After the View Project history dialog is modified, the following error occurs during submission:
Repository has not been enabled to accept revision propchanges;
Ask the Administrator to create a pre-revprop-change hook
Obviously, this is a problem with SVN server settings. The version cannot be modified after submission. You need to add a hook on the server to Allow Log modification. The server I used is the visual SVN server in windows. Find the pre-revision property change hook under the hooks tab on the database properties page and double-click to modify its content.
Enter the following content in the text box:
12345678 |
Set repos = "% 1" set REV = "% 2" Set User = "% 3" set propname = "% 4" set action = "% 5" If % action % = = "M" (if % propname % = "SVN: log "(exit 0) echo" Changing revision properties % propname % is prohibited "> & 2 exit 1 |
Then, click OK.
SVN modify comments of submitted versions