Changes between Version 1 and Version 2 of TracImport
- Timestamp:
- Jun 21, 2008, 6:11:58 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracImport
v1 v2 1 = チケットデータのインポート=1 = Importing ticket data = 2 2 3 3 == Bugzilla == 4 4 5 [http://trac.edgewall.org/browser/trunk/contrib/bugzilla2trac.py bugzilla2trac.py] スクリプトを使用すると、チケットのデータを Bugzilla からインポートすることができます。 bugzilla2trac.py スクリプトは Trac の配布を展開した contrib/ ディレクトリにあります。 5 Ticket data can be imported from Bugzilla using the [http://projects.edgewall.com/trac/browser/trunk/contrib/bugzilla2trac.py bugzilla2trac.py] script, available in the contrib/ directory of the Trac distribution. 6 6 7 7 {{{ … … 23 23 }}} 24 24 25 現在のところ、 Bugzilla からインポートされるのは以下のデータです:25 Currently, the following data is imported from Bugzilla: 26 26 27 * バグ28 * バグの更新 (属性の変更)29 * バグの添付ファイル30 * ユーザ名とパスワード (htpasswd ファイルに出力します)27 * bugs 28 * bug activity (field changes) 29 * bug attachments 30 * user names and passwords (put into a htpasswd file) 31 31 32 bugzilla2trac.py スクリプトは変換を楽にする機能を数多く備えています。例えば:32 The script provides a number of features to ease the conversion, such as: 33 33 34 * PRODUCT_KEYWORDS: Trac にはプロダクトという概念がありません。このため、プロダクトをチケットのキーワードとして紐づけられるようになっています。34 * PRODUCT_KEYWORDS: Trac doesn't have the concept of products, so the script provides the ability to attach a ticket keyword instead. 35 35 36 * IGNORE_COMMENTS: 特定の正規表現にマッチする Bugzilla コメントをインポートしないようにします。36 * IGNORE_COMMENTS: Don't import Bugzilla comments that match a certain regexp. 37 37 38 * STATUS_KEYWORDS: Trac にない Bugzilla のステータスに対してチケットのキーワードを割り当てます。デフォルトでは、 Bugzilla のステータス 'VERIFIED' と 'RELEASED' は、 Trac のキーワードに変換されます。38 * STATUS_KEYWORDS: Attach ticket keywords for the Bugzilla statuses not available in Trac. By default, the 'VERIFIED' and 'RELEASED' Bugzilla statuses are translated into Trac keywords. 39 39 40 使用できるオプションについての更なる詳細についてはスクリプトの先頭にある configuration セクションを参照してください。 40 For more details on the available options, see the configuration section at the top of the script. 41 41 42 42 == Sourceforge == 43 43 44 [http://trac.edgewall.org/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] スクリプトを使用すると、 Sourceforge からチケットのデータをインポートすることができます。 sourceforge2trac.py スクリプトも Trac 配布物を展開した contrib/ ディレクトリにあります。 44 Ticket data can be imported from Sourceforge using the [http://projects.edgewall.com/trac/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] script, available in the contrib/ directory of the Trac distribution. 45 45 46 46 == Mantis == 47 47 48 Mantis バグトラッカからは (訳注: [http://trac.edgewall.org/attachment/wiki/TracImport 本家ページ] に) 添付されたスクリプトを使用してインポートすることができます。48 Mantis bugs can be imported using the attached script. 49 49 50 現在、以下のデータが Mantis からインポートされます:51 * バグ52 * バグのコメント53 * バグの状態 (フィールドの変更)50 Currently, the following data is imported from Mantis: 51 * bugs 52 * bug comments 53 * bug activity (field changes) 54 54 55 添付ファイルはインポート '''されません''' 。もしスクリプトを使用するときは (ファイルの先頭にある) NOTES セクションを読み、あなたの Environment 向けにパラメータの設定を調整してください。 55 Attachments are NOT imported. If you use the script, please read the NOTES section (at the top of the file) and make sure you adjust the config parameters for your environment. 56 56 57 mantis2trac.py は bugzilla2trac.py スクリプトと同じパラメータを使用します:57 mantis2trac.py has the same parameters as the bugzilla2trac.py script: 58 58 {{{ 59 59 mantis2trac - Imports a bug database from Mantis into Trac. … … 73 73 }}} 74 74 75 == その他==75 == Other == 76 76 77 Trac は データの保存に SQL データベースを使用しているので、データベースを調査することによって他のシステムからインポートすることができます。 [http://www.sqlite.org/sqlite.html sqlite] のコマンドラインで Trac データベースのテーブルを参照し、あなたが使用しているアプリケーションからデータベースのテーブルをインポートしてください。 77 Since trac uses a SQL database to store the data, you can import from other systems by examining the database tables. Just go into [http://www.sqlite.org/sqlite.html sqlite] command line to look at the tables and import into them from your application. 78 78 79 === カンマ区切りファイル - CSV ファイルの使用===80 詳しくは [http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py] を参照して下さい。 この方法は手動でたくさんのチケットを登録するようなときにとても便利です。 (最近の Trac のリリースでは、このスクリプトを使用するのにチケットの分類のフィールド (task など) が必要です)79 === Using a comma delimited file - CSV === 80 See [http://trac.edgewall.org/attachment/wiki/TracSynchronize/csv2trac.2.py] for details. This approach is particularly useful if one needs to enter a large number of tickets by hand. (note that the ticket type type field, (task etc...) is also needed for this script to work with more recent Trac releases)