Today I had a developer who wanted to change his commit message after he'd already made the commit to the Subversion repository. Initially, I told him it wasn't possible, but then I decided I should check if my assertion was correct. It wasn't...
To change/edit a Subversion commit message after the commit, do the following on the Subversion server:
$ svnadmin setlog /path/to/repository \
> -r 10662 --bypass-hooks message_file.txt ¬
The
--bypass-hooks argument is necessary because you are editing a non-versioned property of the revision. As such, you lose the history of the original commit message so Subversion requires the
pre-revprop-change hook to be enabled. Passing
--bypass-hooks bypasses this requirement and allows the change.