After copying an issue, revision list does not get updated
I think I found a bug or some omission.
How to reproduce it:
- Create an issue #nnn in project PA.
- Associate an Subversion repository to project PB.
- Commit an revision in this repository and add 'resolved' string in the message with number #nnn. The revision will not appear in the issue #nnn, because it belongs to another project (PA instead of PB).
- Move the issue to project PB.
- You may expect that the revision has appeared in the issue #nnn, but it hasn't. <<< This is what I call a bug or an omission.
- Remove the repository, associated to project PB.
- Assign the same repository to project PB.
- Fetch revisions.
- Take a look at the issue #nnn. The omitted revision is there.
The last two steps resolve the problem, so I think it is now serious one thus I set the priority of the issue to 'Low'.
#2 Updated by Jean-Baptiste Barth about 2 years ago
It's because changesets are linked to an issue only under certain conditions, one of these being the repository project being the same as the issue project (or in the same hierarchy).I see at least two simple solutions :
- link changesets to issues without checking projects equality
- pros: fast, simple
- cons: prevents us from moving repository behaviour at project level in the future (e.g. PA references issues with one keyword, PB with an other keyword)
- rescan for changesets on issue move
- cons: could be long with big repos
Any though about the best solution ?