Changes between Version 1 and Version 2 of InterTrac
- Timestamp:
- Apr 13, 2005, 6:04:40 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InterTrac
v1 v2 1 1 = InterTrac Extension for TracLinks = 2 2 3 ''Warning: this is only a feature proposal''3 ''Warning: this is a proposal for implementing #234'' 4 4 5 An InterTrac link is useful for referring from within a Trac environment 6 to a Trac object (Wiki page, changeset, ticket, ...) located in another 7 Trac environment, with a syntax as simple as possible. 5 == Definition == 8 6 9 It is base on the usage of 1-letter prefix associated to 10 a Trac environment. 7 An InterTrac link is used for referring to a Trac object 8 (Wiki page, changeset, ticket, ...) located in another 9 Trac environment. 11 10 12 Assuming the {{{T}}} letter has been set up to refer to the 13 Edgewall's Trac environment, one could refer to this page 14 as {{{wiki:T:InterTrac}}}. 11 The link is composed by the target environment name, followed by a column 12 (e.g. {{{trac:}}}) follwoed by a regular TracLinks, of any flavor. 15 13 16 TracLinks shortcuts are also adapted: #T234 refers to #234 17 on this Trac site. [T1490] refers to the changeset 1490 on 18 this Trac site, etc. 14 There's also an alternative short-hand form, 15 where one can use a 1, 2 or 3 letters key as an immediate 16 prefix for the identifier of a ticket, changeset or report. 17 That key is associated to an environment name in Trac's configuration file. 19 18 20 The association between letters and Trac environments 21 is done quite simply in an {{{[intertrac]}}} section 19 == Example == 20 21 Besides other local environments, which are automatically 22 detected, it is necessary to setup a configuration for the 23 InterTrac facility: 24 * in order to refer to a remote Trac 25 * for defining project keys 26 27 This is done quite simply in an {{{[intertrac]}}} section 22 28 within the {{{trac.ini}}} file. 23 Currently this has to be repeated for each Trac environment,24 but there's work in progress concerning a25 [ticket:1051 centralized trac.ini], which26 would help greatly here.27 29 30 Example configuration: 31 {{{ 32 ... 33 [intertrac] 34 trac.title = Edgewall's Trac for Trac 35 trac.url = http://projects.edgewall.com/trac 36 trac.svn = http://repos.edgewall.com/projects/trac 37 t.key = trac 38 }}} 39 40 Now, given this configuration, one could create the following links: 41 * to the current InterTrac page: 42 * {{{trac:wiki:InterTrac}}} trac:wiki:InterTrac 43 * {{{t:wiki:InterTrac}}} t:wiki:InterTrac 44 * Keys are case insensitive: {{{T:wiki:InterTrac}}} → T:wiki:InterTrac 45 * to the ticket #234: 46 * {{{trac:ticket:234}}} trac:ticket:234 47 * {{{trac:#234}}} trac:#234 48 * {{{#T234}}} #T234 49 * to the changeset [1508]: 50 * {{{trac:changeset:1508}}} trac:changeset:1508 51 * {{{trac:[1508]}}} trac:[1508] 52 * {{{[T1508]}}} [T1508] 53 54 == Notes == 55 56 Currently, the {{{[intertrac]}}} configuration has to be repeated 57 for each Trac environment, but there's work in progress concerning a 58 [ticket:1051 centralized trac.ini], which would help greatly here. 28 59 29 60 This idea was first proposed as a patch for #234, and 30 should be shortly proposed for inclusion in the 31 following branch: 61 has been implemented in the following branch: 32 62 source:branches/cboos-dev/intertrac-branch 33 (i.e. source:T:branches/cboos-dev/intertrac-branch)34 63 64 In particular, [1508] should implement all the behavior described here.