Allow change svn log only created by user

131 views
Skip to first unread message

Vojtěch Tajmr

unread,
Jul 22, 2022, 8:01:20 AM7/22/22
to TortoiseSVN
Hi, is it possible to restrict changing log messages to only those created by the user itself?

Daniel Sahlberg

unread,
Jul 22, 2022, 8:17:31 AM7/22/22
to TortoiseSVN
fredag 22 juli 2022 kl. 14:01:20 UTC+2 skrev vtd...@gmail.com:
Hi, is it possible to restrict changing log messages to only those created by the user itself?

Changing revision properties (including log message) must be enabled on the server side with the pre-revprop-change hook script. Please see the SVN Book for details: https://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.pre-revprop-change.html.

I have not tried it but it should be possible to get the username of the user requesting the change (argument 3) and compare it with the author of that revision (svnlook author [path\to\repository] -rX, where X is the revision number, see argument 2).

Kind regards,
Daniel

Vojtěch Tajmr

unread,
Jul 27, 2022, 8:13:04 AM7/27/22
to TortoiseSVN
Thanks it works as charm. :)

Dne pátek 22. července 2022 v 14:17:31 UTC+2 uživatel daniel.l...@gmail.com napsal:
Reply all
Reply to author
Forward
0 new messages