Best way to link Redmine issue to SVN revision

后端 未结 3 727
鱼传尺愫
鱼传尺愫 2021-01-31 04:10

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 SV

3条回答
  •  余生分开走
    2021-01-31 04:51

    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.

    More info about Redmine formatting

    ==edit==
    To answer Jonas comment:

    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 (it's possible to make it automatic with some cron jobs).

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

提交回复
热议问题