Hi guys,
By popular request, I've extended the specs on how Subversion clients
can interact with issue trackers a little bit. The whole specs can be
found as always here:
https://svn.collab.net/repos/tortoisesvn/trunk/doc/issuetrackers.txt
Q: So what's new? A: regular expressions.
Clients can use regular expressions to extract bug ID's directly from a
log message and turn them into links. This makes the integration much
more flexible than it was before.
Of course, the previous specs still are and will be valid too.
So what's this all for?
An example:
A user can now write a log message like this:
"blah blah blah blah blah blah.
This fixes issue #567 and partly solves issue #789,
but doesn't do anything more"
With a regex like
[Ii]ssue #?(\d+)(,? ?#?(\d+))+
you can extract the strings "issue #567" and "issue #789" which would
tell you that the commit relates to some issues. The issues itself can
then be extracted from those two strings with the regex
(\d+)
and you've got "567" and "789" which the client then can use to create a
link to the issue tracker.
Of course, since the 'old' way of integrating Subversion clients with
issue trackers still works, you could also use this new feature to just
make the client create links in log messages without adjusting your
hook-script. That way you can turn much more log message text into links
without risking to falsly attach a commit with an issue, but the user
still can click on the issue number mentioned in the log message.
Since I don't have the email addresses from all the devs of Subversion
GUI clients and devs of issue trackers, please tell them about the new
specs. Of course, most of the issue trackers already use regexes in
their hook-scripts, so that shouldn't be a problem for them anyway.
Cheers,
Stefan
P.S. TortoiseSVN will have these new specs implemented in the next
official release. If you can't wait until then, you can use a nightly
build (link on our download page) and help us test it ;)
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Feb 12 18:07:06 2005