#3464: Enable trac to support multiline commit messages
-----------------------------------------+----------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  cmlenz
     Type:  enhancement                  |      Status:  new   
 Priority:  low                          |   Milestone:        
Component:  version control              |     Version:  0.9.6 
 Severity:  minor                        |    Keywords:        
-----------------------------------------+----------------------------------
 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.

-- 
Ticket URL: <http://trac.edgewall.org/ticket/3464>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to