Vote #73227
未完了Bazaar: Incorrect issue-to-revision relation after "uncommit"
0%
説明
Redmine shows the relation of issues to revisions using bazaar's revno (revision number), but that is incorrect given that one can "uncommit", resulting in that issue being shown as relating with two revisions.
Not sure of the internal model, but Redmine should probably use Bazaar's "revno" (for showing to the user) and checking if the "revid" is valid for actual relations.
Steps to reproduce:
# create issue #N $ hack, hack, hack $ bzr commit -m "closes #N" $ bzr log --show-ids -r -1 ------------------------------------------------------------ revno: X revision-id: string1 parent: ... committer: ... branch nick: ... timestamp: ... message: closes #N # check repository (so that the issue gets updated and relates to revision X) $ bzr uncommit $ hack, hack, hack $ bzr commit -m "closes #N" $ bzr log --show-ids -r -1 ------------------------------------------------------------ revno: X revision-id: string2 parent: ... committer: ... branch nick: ... timestamp: ... message: closes #N $ bzr log -r string1 # error, does not exist $ bzr log -r string2 # same as 'bzr log -r -1' # check repository (so that the issue gets updated and now relates to two revisions, but only revid "string2" is valid)
journals
The possible workaround is to reattach the bazaar repository (remove repository from redmine and then add it again). After than all relations with repo revisions will be rebuilded. Worked for me.
--------------------------------------------------------------------------------
related_issues
relates,New,2799,Support for Bazaar's shared reposetories (created with init-repo)