Enable trac to support multiline commit messages
|Reported by:||Owned by:||Christopher Lenz|
Currently trac-post-commit-hook relies on the commit message being passed in the command line. That is a limitation both in size and in number of lines limited to one (at least it appeared so on my (sorry) windows environment - trac received only the first line of the commit message)
Attaching modified post-commit-hook, summary of changes:
- Add -f, —file to options
- if -m was not given, look for file given in -f, read all lines into a message, adding newlines.
This makes sure that:
- all newlines in the message are preserved
- all keywords in all lines are found.
I've started learning Python just doing this, so I haven't done any error checking (i.e. file exists, anything can be read from it etc.)
All you have to do is modify the svn post-commit script to store the commit message into a temporary file and replace -m message with -f filepath.