On 13.07.2010 22:11, Mark Thomas wrote:
On 13/07/2010 19:57, Rainer Jung wrote:
I had a look at BZ46451. It suggests adding subversion properties to
enable the use of subversion bugtraq. This allows a better integration
of BZ into subversion commit messages and retrieval when looking at svn
logs.

Comments?

I was playing with this a while ago here:
http://svn.apache.org/viewvc/tomcat/sandbox/bz-svn/

Feel free to play with the settings there.

I don't recall why I lost interest in this but if you can get it working +1.

I did a little mining for the trunk log and now have a regexp that seems to work pretty well. It finds about 1000 bug references (as far as I can see correctly) and misses about 30, many of those are not direct references. Those first tests I did using perl and parsing the log output.

For further testing I used turtoisesvn, checked out trunk, and added the properties to my local repository without committing them. That's enough, because the properties are looked after only in the working copy.

I used the following properties:

bugtraq:url

https://issues.apache.org/bugzilla/show_bug.cgi?id=%BUGID%

bugtraq:number

yes

bugtraq:label

BZ

bugtraq:logregex

(^|\W)(issues\.apache\.org\/bugzilla\/show_bug\.cgi\?id=|Buzilla|bugzilla|BZ|bz|pr|PR|bug|Bug|Fix|fix|fix of|Fix of|fix for|Fix for|patch for|Patch for|issue|Issue|defect|Defect|fixed|Fixed|^\-?)[\:#\-\s]*(\d{3,})
(\d{3,})

For the last property it is important, that everything except for the final "(\d{3,})" is in one line, and only this part is on the second line.

When I now look at the log with turtoise I have a new column named "BZ" containing the IDs if found, even containing multiple ones if there are multiple references, and if one opens a log entry with such a reference, the matched part in the log is a hyperlink to the issue.

So: seems to work well. The regexp is maybe a bit complicated, but it finds most bug references, and at least turtoise still seems to be fast when showing the log.

Anyone trying with eclipe?

I will wait a bit and if no one opposes, I will commit the properties. If someone has a problem later, we can easily remove them again.

Keep in mind, that since we are using a regexp, you will still have to enter the issue ID when preparing a new log message.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to