Edgewall Software

Changes between Version 21 and Version 22 of InterTrac


Ignore:
Timestamp:
May 22, 2006, 11:36:43 PM (18 years ago)
Author:
Christian Boos
Comment:

following-up to bboisvert's comment, I fixed the examples

Legend:

Unmodified
Added
Removed
Modified
  • InterTrac

    v21 v22  
    1 = InterTrac Extension for TracLinks =
     1= InterTrac Links =
    22
    33''(since [milestone:0.10])''
     
    55== Definitions ==
    66
    7 An InterTrac link is used for referring to a Trac object
     7An InterTrac link can be seen as a scoped TracLinks.
     8It is used for referring to a Trac resource
    89(Wiki page, changeset, ticket, ...) located in another
    910Trac environment.
     
    3435
    3536== Examples ==
     37
    3638{{{
    37 #!
     39#!comment
    3840 Besides the other environments run by the same server process
    3941 (called ''sibling'' environments), which are automatically detected,
    40 
    4142Support for sibling environments has been disabled.
    4243See http://thread.gmane.org/gmane.comp.version-control.subversion.trac.devel/157
    4344}}}
     45
    4446It is necessary to setup a configuration for the InterTrac facility:
    4547 * in order to refer to a remote Trac
     
    5355...
    5456[intertrac]
    55 ## -- Example of setting up an alias:
     57# -- Example of setting up an alias:
    5658t = trac
    5759
    58 ## -- Link to an external Trac:
     60# -- Link to an external Trac:
    5961trac.title = Edgewall's Trac for Trac
    6062trac.url = http://projects.edgewall.com/trac
    61 
    62 #trac.svn = http://repos.edgewall.com/projects/trac
    63 # Hint: .svn information could be used in the future to support svn:externals...
    6463}}}
    6564
    6665Now, given this configuration, one could create the following links:
    6766 * to this InterTrac page:
    68    * `trac:wiki:InterTrac` ->
    69      [http://projects.edgewall.com/trac/wiki/InterTrac trac:wiki:InterTrac]
    70    * `t:wiki:InterTrac` ->
    71      [http://projects.edgewall.com/trac/wiki/InterTrac t:wiki:InterTrac]
    72    * Keys are case insensitive: `T:wiki:InterTrac` ->
    73      [http://projects.edgewall.com/trac/wiki/InterTrac T:wiki:InterTrac]
     67   * `trac:wiki:InterTrac` trac:wiki:InterTrac
     68   * `t:wiki:InterTrac` t:wiki:InterTrac
     69   * Keys are case insensitive: `T:wiki:InterTrac` T:wiki:InterTrac
    7470 * to the ticket #234:
    75    * `trac:ticket:234` ->
    76      [http://projects.edgewall.com/trac/ticket/234 trac:ticket:234]
    77    * `trac:#234` ->
    78      [http://projects.edgewall.com/trac/ticket/234 trac:#234] ''(deprecated)''
    79    * `#T234` ->
    80      [http://projects.edgewall.com/trac/search?q=#234 #T234]
     71   * `trac:ticket:234` trac:ticket:234
     72   * `trac:#234` trac:#234
     73   * `#T234` #T234
    8174 * to the changeset [1912]:
    82    * `trac:changeset:1912` ->
    83      [http://projects.edgewall.com/trac/changeset/1912 trac:changeset:1912]
    84    * `[T1912]` ->
    85      [http://projects.edgewall.com/trac/changeset/1912 "[T1912]"]
     75   * `trac:changeset:1912` trac:changeset:1912
     76   * `[T1912]` [T1912]
     77 * to the log range [3300:3330]: ''(Note: these ones will work at the next server upgrade)''
     78   * `trac:log:3300:3330` trac:log:3300:3330
     79   * `[trac 3300:3330]` [trac 3300:3330]
    8680
    87 Anything not given as explicit links (intertrac_prefix:module:id)
    88 is interpreted by the remote Trac, relying on its quickjump
    89 facility. ''(deprecated)''
     81The generic form `intertrac_prefix:module:id` is translated
     82to the corresponding URL `<remote>/module/id`, shorthand links
     83are specific to some modules (e.g. !#T234 is processed by the
     84ticket module) and for the rest (`intertrac_prefix:something`),
     85we rely on the TracSearch#quickjump facility of the remote Trac.
     86
     87----
     88=== Discussion ===
    9089
    9190  Note that the examples above are hard coded to appropriate destinations, '''not''' processed via InterTrac.  Specifically, the format of the links that rely on the remote quickjump are not as they will appear when generated by InterTrac.
     91
     92Thanks for the reminder... Ir's fixed now: the examples are using the real thing.
     93I think that the `trac` prefix could even be set as a default in the `[intertrac]` TracIni section. --CB
    9294
    9395----
    9496  It would be great, if these links also work in changeset comments, and source code comments. This would facilitate tickets, which touch multiple source code repositories, and patches which can be applied to multiple trees, which a dedicated trac instance each, as it should be possible by using source code control systems like bazaar-ng and mercurial.
    9597
    96 The InterTrac notation is supported everywhere WikiFormatting is supported,
    97 or maybe I misunderstood your query?
    98 Can you provide a more concrete example of what you're looking for? --CB
     98''worksforme'' (next time, I'll delete the above)
    9999
    100100----