Pre-revprop-change hook in TortoiseSVN

General newbie to TortoiseSVN here. I need to change the log message for some commits that I made for subversion. I just want to make my changes, and then everything will return to how it was before, that is, you can’t change anything after fixing.

According to this post ( What is the binding to overriding changes in SVN and how to create one? ), I understand that you need to create pre-revprop-change.bat for this.

My question is, if I just add this bat file, making changes to the log messages, and then delete the bat file, whether the settings will be returned to the previous state (for example, uneditable log messages) .. or I myself launched the bat file, and then came up with another script to discard the changes?

Thanks!

+3
source share
3 answers

Sorry, I misunderstood your question in my original answer.

svn propedit (, svn:log, ), -revprop-change, - , pre-revprop-change - pre-revprop-change.tmpl( /repository -name/hooks svn), pre- revprop-change (chmod a+x).

propedit , , , .

+4

- svnadmin :

echo "My new commit message." > newmsg.txt
svnadmin setlog path/to/repository -r nnn newmsg.txt --bypass-hooks

nnn - .

+2

Use the accepted answer from this question to get the override capture code. Make a file and put it in the repository hook directory. Now you can change the log messages. If you no longer want to change the log messages, delete pre-revprop-change.bat.

0
source

Source: https://habr.com/ru/post/1710677/


All Articles