Changes between Version 1 and Version 2 of InterTrac
- Timestamp:
- Mar 12, 2015, 4:35:26 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InterTrac
v1 v2 1 = InterTrac Links =1 = InterTrac Links 2 2 3 Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup , since version 0.10.3 Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup. 4 4 5 == Definitions ==5 == Definitions 6 6 7 7 An InterTrac link can be seen as a scoped TracLinks. … … 10 10 Trac environment. 11 11 12 == List of Active InterTrac Prefixes ==12 == List of Active InterTrac Prefixes 13 13 14 14 [[InterTrac]] 15 15 16 == Link Syntax ==16 == Link Syntax 17 17 18 18 Simply use the name of the other Trac environment as a prefix, … … 30 30 The prefix is case insensitive. 31 31 32 If the InterTrac link is enclosed in square brackets (like `[th:WikiExtrasPlugin]`), the InterTrac prefix is removed in the displayed link, like a normal link resolver would be (i.e. the above would be displayed as `WikiExtrasPlugin`). 33 32 34 For convenience, there's also some alternative short-hand form, 33 35 where one can use an alias as an immediate prefix … … 35 37 (e.g. `#T234`, `[T1508]`, `[trac 1508]`, ...) 36 38 37 == Examples == 38 39 {{{ 40 #!comment 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 See http://thread.gmane.org/gmane.comp.version-control.subversion.trac.devel/157 45 }}} 39 == Examples 46 40 47 41 It is necessary to setup a configuration for the InterTrac facility. … … 49 43 50 44 Example configuration: 51 {{{ 52 ... 45 {{{#!ini 53 46 [intertrac] 54 47 # -- Example of setting up an alias: … … 57 50 # -- Link to an external Trac: 58 51 trac.title = Edgewall's Trac for Trac 59 trac.url = http://projects.edgewall.com/trac 60 trac.compat = false 52 trac.url = http://trac.edgewall.org 61 53 }}} 62 54 … … 69 61 70 62 Finally, the `.compat` option can be used to activate or disable 71 a ''compat bility'' mode:72 * If the targeted Trac is running a version below milestone:0.1073 ( r3526to be precise), then it doesn't know how to dispatch an InterTrac63 a ''compatibility'' mode: 64 * If the targeted Trac is running a version below [trac:milestone:0.10 0.10] 65 ([trac:r3526 r3526] to be precise), then it doesn't know how to dispatch an InterTrac 74 66 link, and it's up to the local Trac to prepare the correct link. 75 67 Not all links will work that way, but the most common do. 76 This is called the compatibility mode, and is ` true` by default.68 This is called the compatibility mode, and is `false` by default. 77 69 * If you know that the remote Trac knows how to dispatch InterTrac links, 78 you can explicit ely disable this compatibility mode and then ''any''70 you can explicitly disable this compatibility mode and then ''any'' 79 71 TracLinks can become an InterTrac link. 80 72 … … 94 86 * `trac:log:@3300:3330` trac:log:@3300:3330 95 87 * `[trac 3300:3330]` [trac 3300:3330] 88 * finally, to link to the start page of a remote trac, simply use its prefix followed by ':', inside an explicit link. Example: `[th: Trac Hacks]` (''since 0.11; note that the ''remote'' Trac has to run 0.11 for this to work'') 96 89 97 90 The generic form `intertrac_prefix:module:id` is translated … … 102 95 103 96 ---- 104 === Discussion ===105 106 I think that the `trac` prefix could even be set as a default in the `[intertrac]` TracIni section. --CB107 108 ----109 97 See also: TracLinks, InterWiki