UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: info@upwork.link

Best way to link Redmine issue to SVN revision

without comments

Q

We are using Redmine for issue and bug tracking. We added SVN integration but, by doing this, it just shows SVN revisions in activity. It would be great to see all SVN changes caused by a bug or issue. But it does not seem to be possible.Is there a way to do that? If not Redmine, which is the best alternative tracking system to achieve this?

We add the issue number in svn commit message and it’s recognized automatically.

svn ci -m "incorrect encoding fixed (refs #2345)"

Later you’ll be able to see it in the issue #2345. It doesn’t show up right away, I guess redmine checks periodically for repository changes – but if you go to Repository tab and then to the issue, the change should be shown then.

In fact the idea of this is to be able to make connection between some issue and svn revisions related to it. It should work both ways – in repository page you see the link to the issue; in the issue’s page you should be able to see the link to the related revisions.

For this to work you need:

  • to have configured repository in your project (or parent project, it works as well)
  • to have configured keywords like refs in Administration->Settings [Repository] ->”Referencing keywords”
  • when you commit to svn (mentioning your issue in commit description like “refs #1234”), this revision doesn’t appear automatically in redmine repository – you need to refresh it manually going to Repository tab of the project

After all this you should be able to see in your issue “Associated revisions”

If the original commit message did not reference a Redmine issue number, you can also do the reverse: manually reference a repository revision by number in a Redmine issue description. For example:

    This issue is an unintended side effect of r5678, which was implemented to address issue #1234.

In that case, “r5678” would automatically link to the revision in Redmine’s repository tab (and “#1234” would automatically link to the corresponding issue page).

refs allows you to associate a revision to an issue, which is great. You can also configure another keywords like “fixes” which will associate the revision to an issue, but will also change the status and the % of realisation automatically. This can be very useful for example when the commit is done to put the issue in a test status. That will be automatic, without having to do it manually.

you can do it administration->settings->repositories and "resolution keywords"

based on http://stackoverflow.com/questions/3607590/best-way-to-link-redmine-issue-to-svn-revision

Written by spectre

October 31st, 2013 at 8:56 pm

Posted in Svn,Tips and Tricks

Leave a Reply

*