Redmine and SVN: How to link a Revision to an Issue AFTER the commit has happened?

跟風遠走 提交于 2019-12-05 08:16:36

One possible solution to make redmine re-read svn log of the project is to delete the repository from project settings, enter it again and go to repository tab, it will probably load everything from the beginning.

It's a workaround and perhaps there's a better way, but it should still work. Deleting repository from redmine project setting will not affect your actual svn repository.

Adam Badura

See also reply from user3402809 to my question Associating revisions with a Redmine issue. It provides simpler and less intrusive way providing you have "Manage related issues" permission in Redmine.

I'm not 100% on this but....

in the redmine code there is a method called fetch_changesets that, grabs the changesets from repositories for all projects. The comment above it says:

Fetches new changesets for all repositories of active projects
Can be called periodically by an external script
eg. ruby script/runner "Repository.fetch_changesets"

there is another method under that called scan_changesets_for_issue_ids which is what's called to rescan the comments. These are in models/repository.rb so you could modify them to clear, fetch and rescan all in 1 new method. Obviously you'll need to set SVN up to allow changing of historical commit messages.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!