プロジェクト

全般

プロフィール

Vote #65272

未完了

stripping comments prevents importing Trac compatible subversion messages

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

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

0%

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

説明

Please change source:trunk/app/models/changeset.rb#L144
from
@to_utf8(str.to_s.strip)@
to
@to_utf8(str.to_s)@

The wiki formatting used by Trac requires that bullet lists include a leading space before the asterisk. The wiki formatter used in Redmine appears to accept the bullet list syntax with and without the leading space, but not a mixture of both.

When importing a subversion repository which was used with Trac, it is important to preserve this leading space, otherwise the changeset comment is formatted by Redmine as one bullet entry containing multiple asterisks.

Perhaps an example will help:
the changeset message is

 * item 1
 * item 2
 * item 3

which when stripped is inserted in the database as:

* item 1
 * item 2
 * item 3

causing Redmine to format it as:

  • item 1
    • item 2
    • item 3

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット

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

いいね!0
いいね!0