将 Redmine 问题链接到 SVN 修订版的最佳方式 [英] Best way to link Redmine issue to SVN revision

查看:65
本文介绍了将 Redmine 问题链接到 SVN 修订版的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 Redmine 进行问题和错误跟踪.我们添加了 SVN 集成,但通过这样做,它只显示活动中的 SVN 修订.

We are using Redmine for issue and bug tracking. We added SVN integration but, by doing this, it just shows SVN revisions in activity.

很高兴看到由错误或问题引起的所有 SVN 更改.不过好像不太可能.

It would be great to see all SVN changes caused by a bug or issue. But it does not seem to be possible.

有没有办法做到这一点?如果不是 Redmine,哪个是实现这一目标的最佳替代跟踪系统?

Is there a way to do that? If not Redmine, which is the best alternative tracking system to achieve this?

推荐答案

我们在 svn commit message 中添加 issue 编号,它会自动识别.

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

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

稍后您将能够在问题 #2345 中看到它.它不会立即显示,我猜 redmine 会定期检查存储库更改 - 但是如果您转到 Repository 选项卡然后转到问题,则应该显示更改.

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.

有关Redmine 格式的更多信息

==编辑==
回答乔纳斯评论:

==edit==
To answer Jonas comment:

事实上,这样做的想法是能够在某些问题和与之相关的 svn 修订版之间建立联系.它应该双向工作 - 在存储库页面中,您会看到问题的链接;在问题页面中,您应该能够看到相关修订的链接.

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.

为此您需要:

  • 在您的项目(或父项目,它也可以)中配置存储库
  • 在管理->设置[存储库]->引用关键字"中配置refs等关键字
  • 当您提交到 svn 时(在提交描述中提到您的问题,如refs #1234"),此修订不会自动出现在 redmine 存储库中 - 您需要手动刷新它,转到项目的存储库选项卡(这是可能的)使用一些 cron 作业使其自动化).

毕竟这一切你应该能够在你的问题中看到相关修订"

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

这篇关于将 Redmine 问题链接到 SVN 修订版的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆