3 messages in com.mysql.lists.eventum-develImprovements to the scm integration s...
FromSent OnAttachments
Gaetano Giunta08 Feb 2007 06:15 
Elan Ruusamäe08 Feb 2007 11:56 
Gaetano Giunta09 Feb 2007 01:55 
Subject:Improvements to the scm integration script
From:Gaetano Giunta (giun@sea-aeroportimilano.it)
Date:02/08/2007 06:15:21 AM
List:com.mysql.lists.eventum-devel

The process_svn_commits.php file, used as post-commit script from subversion,
only parses the first line of the svn changelog looking for an "issue: xxx" or
"bug: #yyy" tag.

Imho it would be a better idea to scan the complete commit msg for such tags. Diff is:

line 64: - $commit_msg = array_shift($results); + $commit_msg = implode("\n", $results); line 78: - $pattern = "/[issue|bug] ?:? ?#?(\d+)/i"; + $pattern = "/[issue|bug] ?:? ?#?(\d+)/im";

This has the welcome side effect of showing the complete changelog message in
the eventum issue page (the current script only shows the first line of the
changelog message)