modifying a wrong commit message in a svn/trac combo
With svn and trac, the use of TracLinks is a brilliant and simple solution to document relations e.g. between a changeset and a ticket.
But what if the stupid thoughtless and unobservant developer mixes up these few little numbers that represent a ticket?
With direct access to the system where the subversion repository and the trac instance reside there is an easy way to correct this misery:
svnadmin --bypass-hooks setlog /path/to/the/svn-repository \
-r <revision-number> <text-file hopefully without further errors>
trac-admin /path/to/the/trac-instance resync
And another layer 8 issue solved.
The -bypass-hooks option is necessary if the “pre-revprop-change” hook is not in place, albeit this has to be used carefully as it may bypass such things as email notifications of the change, or backup systems that keep track of revision properties.