Integrate TortoiseSVN with Redmine

Mohammed Nasman picture Mohammed Nasman · Feb 5, 2009 · Viewed 10.4k times · Source

I'm trying to integrate Redmine with TortoiseSVN, but I was not able to do that because TSVN always gives me this error:

"There are no issue-tracker providers available."

I followed these steps:

  • In my project folder properties, I added 'bugtraq:url -> http://myweb/../issues/show/%BUGID%'
  • In Redmine settings, I added SVN in the repository tab, and Redmine showed my repository without any problems.

I'm not sure if there are any missing steps or what I have to do to make the integration.

Or should I look at trac, because it seems more stable and has better support?

Answer

Jim T picture Jim T · Feb 9, 2009

Slightly more detail on Stefan's post:

With what you're trying to do, setting the bugtraq:url alone isn't enough. You need to either set the 'bugtraq:message' property or the 'bugtraq:logregex' property as well. As an example, on our redmine setup we allow the following items in the commit message:

  • References: refs,references,IssueID
  • Fixes: fixes,closes,Fixes Bug

So we use a bugtraq:logregex for maximum flexibility of:

([Cc]loses|[Ii]ssue[Ii][Dd]|[Rr]eferences|[Rr]efs|[Ff]ixes(\s[Bb]ug)?)\s?#(\d+)
\d+

Which covers all our options.

By doing this, tortoise highlights the part of the commit comment which links into redmine and turns the number into a link which you can click on to go to the actual redmine issue.

The more advanced option is to allow you to choose an open bug directly from redmine. It's this feature that needs a specific plugin installed on your machine, but as far as I can tell, such a plugin for redmine doesn't exist, so we're kind of stuck with the basic option at the moment. When someone writes such a plug-in, and you install it, you'll then be able to go into "Issue tracker Integration" as you're currently trying to and things will work fine.