Changes between Version 1 and Version 2 of InterTrac
- Timestamp:
- Jun 21, 2008, 6:11:58 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InterTrac
v1 v2 1 = InterTrac リンク=1 = InterTrac Links = 2 2 3 バージョン 0.10 以降で、 Trac は Wiki マークアップの中から、他の Trac サーバのリソースを簡単に参照できるようになりました。 3 Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup, since version 0.10. 4 4 5 == 定義==5 == Definitions == 6 6 7 InterTrac リンクはスコープ付きの TracLinks とみなすことができます。 8 他の Trac Environment で管理されている Trac のリソース 9 (Wiki ページ, チェンジセット, チケット, ...) を指定し、10 参照するために使用します。 7 An InterTrac link can be seen as a scoped TracLinks. 8 It is used for referring to a Trac resource 9 (Wiki page, changeset, ticket, ...) located in another 10 Trac environment. 11 11 12 == 現在使用できる InterTrac プレフィックスのリスト==12 == List of Active InterTrac Prefixes == 13 13 14 14 [[InterTrac]] 15 15 16 == リンクのシンタックス==16 == Link Syntax == 17 17 18 他の Trac Environment の名前をプレフィックスとして使用し、 19 コロンに続けて他の Environment にあるリソースを記述します。 18 Simply use the name of the other Trac environment as a prefix, 19 followed by a colon, ending with the resource located in the other environment. 20 20 21 21 {{{ 22 < 対象の Environment>:<TracLinks>22 <target_environment>:<TracLinks> 23 23 }}} 24 24 25 リソースは通常の TracLinks で使用できるどのようなものでも指定できます。 25 The other resource is specified using a regular TracLinks, of any flavor. 26 26 27 対象の Environment には、 Environment の本当の名前か、 28 エイリアスを指定します。 29 エイリアスは `trac.ini` に定義します (下記参照)。 30 プレフィックスでは大文字 / 小文字は区別されません。 27 That target environment name is either the real name of the 28 environment, or an alias for it. 29 The aliases are defined in `trac.ini` (see below). 30 The prefix is case insensitive. 31 31 32 簡易な方法として、他にも省略形があります。 33 チケット、チェンジセット、レポートの識別子に直接プレフィックスとして、 34 エイリアスを使うことができます。 35 ( 例`#T234`, `[T1508]`, `[trac 1508]`, ...)32 For convenience, there's also some alternative short-hand form, 33 where one can use an alias as an immediate prefix 34 for the identifier of a ticket, changeset or report: 35 (e.g. `#T234`, `[T1508]`, `[trac 1508]`, ...) 36 36 37 == 例==37 == Examples == 38 38 39 39 {{{ 40 40 #!comment 41 同じサーバプロセス上で起動している、他の Environment42 ( ''兄弟'' Environment と呼びます) は自動検出されます。43 現在、兄弟 Environment のサポートは無効化されています。 41 Besides the other environments run by the same server process 42 (called ''sibling'' environments), which are automatically detected, 43 Support for sibling environments has been disabled. 44 44 See http://thread.gmane.org/gmane.comp.version-control.subversion.trac.devel/157 45 45 }}} 46 46 47 I nterTrac を使用するためには、設定をする必要があります。48 この設定は、 TracIni ファイルの `[intertrac]` セクションに行います。 47 It is necessary to setup a configuration for the InterTrac facility. 48 This configuration has to be done in the TracIni file, `[intertrac]` section. 49 49 50 設定の例:50 Example configuration: 51 51 {{{ 52 52 ... 53 53 [intertrac] 54 # -- エイリアスの設定例:54 # -- Example of setting up an alias: 55 55 t = trac 56 56 57 # -- 外部の Trac へのリンク:57 # -- Link to an external Trac: 58 58 trac.title = Edgewall's Trac for Trac 59 59 trac.url = http://projects.edgewall.com/trac … … 61 61 }}} 62 62 63 `.url` は必須オプションで、他の Trac の場所を指定するのに使用されます。 64 同じサーバ上の Trac Environment であれば、相対 URL でも 65 かまいません。 63 The `.url` is mandatory and is used for locating the other Trac. 64 This can be a relative URL in case that Trac environment is located 65 on the same server. 66 66 67 `.title` に設定した内容は InterTrac リンクをマウスオーバしたときに、 68 ツールティップとして表示されます。 67 The `.title` information will be used for providing an useful tooltip 68 when moving the cursor over an InterTrac links. 69 69 70 最後に、 `.compat` オプションは ''互換性'' モードを 71 有効にするか、無効にするかに使用されます。:72 * リンク対象の Trac が [http://trac.edgewall.org/milestone/0.10 milestone:0.10]73 ( 正確には [http://trac.edgewall.org/changeset/3526 r3526]) 以前のバージョンで動作している場合、 InterTrac リンクを74 ディスパッチできないので、ローカルの Trac が適切なリンクを準備する必要があります。75 すべてのリンクが動作するわけではないですが、たいていの場合は動きます。76 これは、互換性モードと呼ばれていて、 `true` がデフォルトです。77 * リモートサイトにある Trac が InterTrac リンクをディスパッチできると分かっているならば、78 明示的にこの互換性モードを無効にすることで、''全ての''79 TracLinks が InterTrac リンクとして動作するようになります。70 Finally, the `.compat` option can be used to activate or disable 71 a ''compatbility'' mode: 72 * If the targeted Trac is running a version below milestone:0.10 73 (r3526 to be precise), then it doesn't know how to dispatch an InterTrac 74 link, and it's up to the local Trac to prepare the correct link. 75 Not all links will work that way, but the most common do. 76 This is called the compatibility mode, and is `true` by default. 77 * If you know that the remote Trac knows how to dispatch InterTrac links, 78 you can explicitely disable this compatibility mode and then ''any'' 79 TracLinks can become an InterTrac link. 80 80 81 上記の例を設定すると、以下のようなリンクを使用することができます:82 * この (訳注: 本家サイトの) InterTrac ページ:81 Now, given the above configuration, one could create the following links: 82 * to this InterTrac page: 83 83 * `trac:wiki:InterTrac` trac:wiki:InterTrac 84 84 * `t:wiki:InterTrac` t:wiki:InterTrac 85 * キーでは大文字/小文字は区別されません: `T:wiki:InterTrac` T:wiki:InterTrac86 * チケット #234 へのリンク:85 * Keys are case insensitive: `T:wiki:InterTrac` T:wiki:InterTrac 86 * to the ticket #234: 87 87 * `trac:ticket:234` trac:ticket:234 88 88 * `trac:#234` trac:#234 89 89 * `#T234` #T234 90 * チェンジセット [1912] へのリンク:90 * to the changeset [1912]: 91 91 * `trac:changeset:1912` trac:changeset:1912 92 92 * `[T1912]` [T1912] 93 * リビジョンログの範囲指定 [3300:3330]: '''(Note: `trac.compat=false` を設定する必要があります。)'''93 * to the log range [3300:3330]: '''(Note: the following ones need `trac.compat=false`)''' 94 94 * `trac:log:@3300:3330` trac:log:@3300:3330 95 95 * `[trac 3300:3330]` [trac 3300:3330] 96 96 97 通常の形式 `<InterTrac のプレフィックス>:モジュール:識別子` は 98 正しい URL `<リンク先の Environment>/モジュール/識別子` と解釈されます。省略形のリンクは 99 モジュールごとに固有となっています (例 !#T234 は 100 チケットモジュールによって解釈されます)。残りの形 (`<InterTrac のプレフィックス>:任意の文字列`) 101 については、 リモートの Trac の TracSearch#クイックジャンプ に沿った動作をします。 97 The generic form `intertrac_prefix:module:id` is translated 98 to the corresponding URL `<remote>/module/id`, shorthand links 99 are specific to some modules (e.g. !#T234 is processed by the 100 ticket module) and for the rest (`intertrac_prefix:something`), 101 we rely on the TracSearch#quickjump facility of the remote Trac. 102 102 103 103 ----