Hey!
I have integrated subversion with my mantis installation.
To make this usable i need to create links in my mantis bugnotes!
How is that possible?
If i write html in my notes, the tags are not interpreted as html. They are just displayed as i write them.
e.g. <a href="asdf">asdf</a> is displayed as <a href="asdf">asdf</a>.
kerthi
Hyperlink in mantis bugnote
Moderators: Developer, Contributor
Hi Kerthi,
Firstly, a disclaimer: I've never done this myself, so...
Also, I don't know of any 'official' SVN / Mantis integration code, so I don't quite know what you mean when you say that you "have integrated subversion with my mantis installation".
I'm assuming that you hope to just type something like "SVN:1234" to link to your change, right?
With that all over, there's two things I'd consider looking at:
1) The slightly easier option: if you don't use CVS (or at least don't care if you can't create CVS links in Mantis) then I'd just change the string_process_cvs_link(...) function (in core/strings_api.php) to suit your needs.
2) If you want to keep the CVS option open, copy the string_process_cvs_link(...) function, name it something like string_process_svn_link(...) and edit it appropriately. Finally, edit the string_display_links(...) function in the same file, and call your new SVN parser alongside all of the rest.
Hopefully this makes sense!
Lincoln.
Firstly, a disclaimer: I've never done this myself, so...
Also, I don't know of any 'official' SVN / Mantis integration code, so I don't quite know what you mean when you say that you "have integrated subversion with my mantis installation".
I'm assuming that you hope to just type something like "SVN:1234" to link to your change, right?
With that all over, there's two things I'd consider looking at:
1) The slightly easier option: if you don't use CVS (or at least don't care if you can't create CVS links in Mantis) then I'd just change the string_process_cvs_link(...) function (in core/strings_api.php) to suit your needs.
2) If you want to keep the CVS option open, copy the string_process_cvs_link(...) function, name it something like string_process_svn_link(...) and edit it appropriately. Finally, edit the string_display_links(...) function in the same file, and call your new SVN parser alongside all of the rest.
Hopefully this makes sense!
Lincoln.