I put a mistake into a comment in SVN. Can I edit this after checkin?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Commit messages are ‘unversioned properties’ and can be changed with the svn propset command, for example
This is setting the revision property called ‘svn:log’ on revision 25
Configuring subversion to allow revision property changes
Because these are unversioned, a default installation of subversion won’t let you modify these properties unless you provide a pre-revprop-change hook script.
Here’s a typical script, from /var/lib/svn/hooks/pre-revprop-change on my system:
This logs changes to svn:log revision properties, and allows the edit by using exit 0, any other revision property change is denied by using exit 1. See patmortech’s answer for a Windows equivalent.