Lübbe Onken wrote:
>>Assuming I want to use Trac which expects something like
>>'fixes #1234' I
>>would define bugtraq:message to be 'fixes #%BUGID%', right?
>
> That would only be ok, if you are really sure that your commit fixes this
> bug-id. I would not use such a standard text...
That was only meant as an example.
> Yes, currently it would be 'fixes #1234,4356'. It's really easy to extract
> the issue id's from that line with a regex and then loop through the issues,
> attach a bugnote, change the status to fixed or whatever. I've done it with
> a ten liner in php for mantis. Python / trac should be the same.
Yep, sure, no problem, the Trac script already does something like that.
I just wanted to make sure if I really need to mess with the hook script
or if there is some other (even easier) way, so I could leave it as-is.
Unfortunately, if someone would like to support multiple tickets and
different types of ticket references (like "re #123, #345" vs "fix #67")
he'll end up entering the whole info as expected in the script into the
small issue ID field of the commit dialog.
Not a problem for me though - I'll simply settle for something like
"adresses #%BUGID" and no automatic issue closing. I think it's
reasonable that the user explicitly has to do that in the issue tracker
itself anyway.
Lars.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Oct 28 12:17:44 2004