Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://kodomo.cmm.msu.ru/trac/tanchiki/wiki/InterTrac?action=diff&version=1
Äàòà èçìåíåíèÿ: Unknown
Äàòà èíäåêñèðîâàíèÿ: Mon Apr 11 19:55:44 2016
Êîäèðîâêà: IBM-866
InterTrac (diff) òÀÓ Tanchiki

Changes between Initial Version and Version 1 of InterTrac


Ignore:
Timestamp:
11/20/10 16:22:18 (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InterTrac

    v1 v1 ˆà
    ˆà1= InterTrac Links  =ˆà
    ˆà2ˆà
    ˆà3Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup, since version 0.10.ˆà
    ˆà4ˆà
    ˆà5== Definitions ==ˆà
    ˆà6ˆà
    ˆà7An InterTrac link can be seen as a scoped TracLinks.ˆà
    ˆà8It is used for referring to a Trac resource ˆà
    ˆà9(Wiki page, changeset, ticket, ...) located in anotherˆà
    ˆà10Trac environment.ˆà
    ˆà11ˆà
    ˆà12== List of Active InterTrac Prefixes ==ˆà
    ˆà13ˆà
    ˆà14[[InterTrac]]ˆà
    ˆà15ˆà
    ˆà16== Link Syntax ==ˆà
    ˆà17ˆà
    ˆà18Simply use the name of the other Trac environment as a prefix, ˆà
    ˆà19followed by a colon, ending with the resource located in the other environment.ˆà
    ˆà20ˆà
    ˆà21{{{ˆà
    ˆà22<target_environment>:<TracLinks>ˆà
    ˆà23}}}ˆà
    ˆà24ˆà
    ˆà25The other resource is specified using a regular TracLinks, of any flavor.ˆà
    ˆà26ˆà
    ˆà27That target environment name is either the real name of the ˆà
    ˆà28environment, or an alias for it. ˆà
    ˆà29The aliases are defined in `trac.ini` (see below).ˆà
    ˆà30The prefix is case insensitive.ˆà
    ˆà31ˆà
    ˆà32When a TracLink is enclosed in brackets, the alias is expanded.  That is, `[th:ticket:1]` is displayed as `trachacks:ticket:1`, since `th` is an alias for `trachacks`.  If the TracLink is not enclosed in brackets, then the alias is displayed as it is typed.ˆà
    ˆà33ˆà
    ˆà34For convenience, there's also some alternative short-hand form, ˆà
    ˆà35where one can use an alias as an immediate prefix ˆà
    ˆà36for the identifier of a ticket, changeset or report:ˆà
    ˆà37(e.g. `#T234`, `[T1508]`, `[trac 1508]`, ...)ˆà
    ˆà38ˆà
    ˆà39== Examples ==ˆà
    ˆà40ˆà
    ˆà41It is necessary to setup a configuration for the InterTrac facility.ˆà
    ˆà42This configuration has to be done in the TracIni file, `[intertrac]` section.ˆà
    ˆà43ˆà
    ˆà44Example configuration:ˆà
    ˆà45{{{ˆà
    ˆà46...ˆà
    ˆà47[intertrac]ˆà
    ˆà48# -- Example of setting up an alias:ˆà
    ˆà49t = tracˆà
    ˆà50ˆà
    ˆà51# -- Link to an external Trac:ˆà
    ˆà52trac.title = Edgewall's Trac for Tracˆà
    ˆà53trac.url = http://trac.edgewall.orgˆà
    ˆà54}}}ˆà
    ˆà55ˆà
    ˆà56The `.url` is mandatory and is used for locating the other Trac.ˆà
    ˆà57This can be a relative URL in case that Trac environment is located ˆà
    ˆà58on the same server.ˆà
    ˆà59ˆà
    ˆà60The `.title` information will be used for providing an useful tooltipˆà
    ˆà61when moving the cursor over an InterTrac links.ˆà
    ˆà62ˆà
    ˆà63Finally, the `.compat` option can be used to activate or disableˆà
    ˆà64a ''compatibility'' mode:ˆà
    ˆà65 * If the targeted Trac is running a version below [trac:milestone:0.10 0.10] ˆà
    ˆà66   ([trac:r3526 r3526] to be precise), then it doesn't know how to dispatch an InterTrac ˆà
    ˆà67   link, and it's up to the local Trac to prepare the correct link. ˆà
    ˆà68   Not all links will work that way, but the most common do. ˆà
    ˆà69   This is called the compatibility mode, and is `true` by default. ˆà
    ˆà70 * If you know that the remote Trac knows how to dispatch InterTrac links, ˆà
    ˆà71   you can explicitly disable this compatibility mode and then ''any'' ˆà
    ˆà72   TracLinks can become an InterTrac link.ˆà
    ˆà73ˆà
    ˆà74Now, given the above configuration, one could create the following links:ˆà
    ˆà75 * to this InterTrac page:ˆà
    ˆà76   * `trac:wiki:InterTrac` trac:wiki:InterTracˆà
    ˆà77   * `t:wiki:InterTrac` t:wiki:InterTracˆà
    ˆà78   * Keys are case insensitive: `T:wiki:InterTrac` T:wiki:InterTracˆà
    ˆà79 * to the ticket #234:ˆà
    ˆà80   * `trac:ticket:234` trac:ticket:234ˆà
    ˆà81   * `trac:#234` trac:#234 ˆà
    ˆà82   * `#T234` #T234ˆà
    ˆà83 * to the changeset [1912]:ˆà
    ˆà84   * `trac:changeset:1912` trac:changeset:1912ˆà
    ˆà85   * `[T1912]` [T1912]ˆà
    ˆà86 * to the log range [3300:3330]: '''(Note: the following ones need `trac.compat=false`)'''ˆà
    ˆà87   * `trac:log:@3300:3330` trac:log:@3300:3330  ˆà
    ˆà88   * `[trac 3300:3330]` [trac 3300:3330] ˆà
    ˆà89 * 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'')ˆà
    ˆà90ˆà
    ˆà91The generic form `intertrac_prefix:module:id` is translatedˆà
    ˆà92to the corresponding URL `<remote>/module/id`, shorthand linksˆà
    ˆà93are specific to some modules (e.g. !#T234 is processed by theˆà
    ˆà94ticket module) and for the rest (`intertrac_prefix:something`),ˆà
    ˆà95we rely on the TracSearch#quickjump facility of the remote Trac.ˆà
    ˆà96ˆà
    ˆà97----ˆà
    ˆà98See also: TracLinks, InterWikiˆà