プロジェクト

全般

プロフィール

Vote #73227

未完了

Bazaar: Incorrect issue-to-revision relation after "uncommit"

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
12973
author_id:
8480
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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)

Admin Redmine さんが約2年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0