Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

svn

redmine

So we have Redmine successfully integrated with SVN. It's a mature integration (a few months now). Post-commit-hook updates the repository in Redmine. Comments in SVN commit get beautifully imported into Redmine, which is able to create links between issues and revisions, log time, the whole 9 yards.

However, for time constraint issues, there was an urgent bug which had to be fixed quickly and committed without comments. The issue wasn't even in Redmine. This happened at 3:35AM, when best practices are as valued as a bag of ice for sale in the Arctic winter.

Now, this morning, we entered the issue into Redmine and want to link that crazy 3:35AM revision to it. How can that be done?

I was once able to hack that by erasing some records in Redmine database and running the repository update task. But I do not really remember right now and really really do not want to go there anymore.

Is there a way? A functionality? A plugin? A script? Anything?

Thanks in advance

Update

Oh, by the way, we already updated the comment for THAT revision, containing the valid tags and words Redmine expects.

like image 363
Adriano Carneiro Avatar asked May 18 '11 16:05

Adriano Carneiro


2 Answers

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.

like image 69
Dmitry Yudakov Avatar answered Oct 20 '22 13:10

Dmitry Yudakov


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.

like image 43
Adam Badura Avatar answered Oct 20 '22 11:10

Adam Badura