Changes between Version 21 and Version 22 of InterTrac
- Timestamp:
- May 22, 2006, 11:36:43 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InterTrac
v21 v22 1 = InterTrac Extension for TracLinks=1 = InterTrac Links = 2 2 3 3 ''(since [milestone:0.10])'' … … 5 5 == Definitions == 6 6 7 An InterTrac link is used for referring to a Trac object 7 An InterTrac link can be seen as a scoped TracLinks. 8 It is used for referring to a Trac resource 8 9 (Wiki page, changeset, ticket, ...) located in another 9 10 Trac environment. … … 34 35 35 36 == Examples == 37 36 38 {{{ 37 #! 39 #!comment 38 40 Besides the other environments run by the same server process 39 41 (called ''sibling'' environments), which are automatically detected, 40 41 42 Support for sibling environments has been disabled. 42 43 See http://thread.gmane.org/gmane.comp.version-control.subversion.trac.devel/157 43 44 }}} 45 44 46 It is necessary to setup a configuration for the InterTrac facility: 45 47 * in order to refer to a remote Trac … … 53 55 ... 54 56 [intertrac] 55 # #-- Example of setting up an alias:57 # -- Example of setting up an alias: 56 58 t = trac 57 59 58 # #-- Link to an external Trac:60 # -- Link to an external Trac: 59 61 trac.title = Edgewall's Trac for Trac 60 62 trac.url = http://projects.edgewall.com/trac 61 62 #trac.svn = http://repos.edgewall.com/projects/trac63 # Hint: .svn information could be used in the future to support svn:externals...64 63 }}} 65 64 66 65 Now, given this configuration, one could create the following links: 67 66 * 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 74 70 * 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 81 74 * 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] 86 80 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)'' 81 The generic form `intertrac_prefix:module:id` is translated 82 to the corresponding URL `<remote>/module/id`, shorthand links 83 are specific to some modules (e.g. !#T234 is processed by the 84 ticket module) and for the rest (`intertrac_prefix:something`), 85 we rely on the TracSearch#quickjump facility of the remote Trac. 86 87 ---- 88 === Discussion === 90 89 91 90 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 92 Thanks for the reminder... Ir's fixed now: the examples are using the real thing. 93 I think that the `trac` prefix could even be set as a default in the `[intertrac]` TracIni section. --CB 92 94 93 95 ---- 94 96 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. 95 97 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) 99 99 100 100 ----