Changes between Version 31 and Version 32 of TracMercurial
- Timestamp:
- Jan 22, 2007, 9:37:08 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracMercurial
v31 v32 1 [[PageOutline(2-3)]] 1 2 = Mercurial Plugin for Trac (#1847) = 2 3 3 There is an '''experimental''' plugin for Trac [milestone:0.10] 4 There is an '''experimental''' plugin for Trac [milestone:0.10] and Trac [milestone:0.11] 4 5 which enables [http://www.selenic.com/mercurial Mercurial] 5 6 to be used instead of [http://subversion.tigris.org Subversion] … … 11 12 Change Logs: 12 13 * log:sandbox/mercurial-plugin 13 * log:sandbox/ vc-refactoring14 * log:sandbox/mercurial-plugin-0.11 14 15 15 16 == Download and Installation == 16 17 ==== Trac ==== 18 The plugin needs a slightly modified version of Trac 0.10. 19 This version can be found in source:sandbox/vc-refactoring. 20 21 Simply do one of (see revision table below): 22 23 1. Use Trac [milestone:0.10] (see TracDownload) 24 and install it (see TracInstall) 25 26 2. or use the version in trunk ([milestone:0.11]dev). 27 The advantage being that you don't need ClearSilver anymore. 28 It also supports of the new features added in 0.11 to the TracBrowser: 29 - quickjump to a tag or branch 30 - blame support 31 - custom property renderers 17 === Trac === 18 ==== Trac 0.10 ==== 19 20 The plugin [source:sandbox/mercurial-plugin] works fine with Trac 0.10.3, though it will lack the "quickjump" to a branch or tag feature (this was implemented in source:sandbox/vc-refactoring, but is only available in the mainline for 0.11). 21 22 See TracDownload and install Trac the usual way (see TracInstall) 23 24 The plugin itself is available from source:sandbox/mercurial-plugin 25 26 Check it out: 27 28 {{{ 29 svn co http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin 30 }}} 31 and create an "egg" from there 32 {{{ 33 $ cd mercurial-plugin 34 $ python setup.py bdist_egg 35 }}} 36 37 ==== Trac 0.11 ==== 38 39 There's a newer version of the plugin [source:sandbox/mercurial-plugin-0.11] which has been adapted to work with the trunk version of Trac ([milestone:0.11]dev) and is kept in sync with it. 40 41 One of the advantage of using this version is that you won't need to install ClearSilver anymore; instead you'll need the Genshi template engine (which is Python only, and therefore straightforward to install). 42 43 That version of the Mercurial plugin also supports of the new features added in 0.11 to the TracBrowser: 44 - quickjump to a tag or branch 45 - blame support 46 - custom property renderers ([souce:sandbox/property-renderers-tmp], not yet in trunk) 47 32 48 {{{ 33 49 svn co http://svn.edgewall.com/repos/trac/trunk trac … … 44 60 (for Genshi, you might prefer to use a packaged release, see Genshi:GenshiDownload, or to easy_install it) 45 61 46 The plugin itself is available from source:sandbox/mercurial-plugin 47 48 Check it out, too: 49 50 1. If you are using Trac [milestone:0.10] 51 {{{ 52 svn co http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin 53 }}} 54 and create an "egg" from there 55 {{{ 56 $ cd mercurial-plugin 57 $ python setup.py bdist_egg 58 }}} 59 2. If you are using Trac [milestone:0.11]dev 62 Then, you need the plugin itself: 60 63 {{{ 61 64 svn co http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin-0.11 62 65 }}} 63 and create an "egg" from there 66 create an "egg" from there: 64 67 {{{ 65 68 $ cd mercurial-plugin-0.11 … … 70 73 [http://peak.telecommunity.com/DevCenter/setuptools setuptools] >= 0.6 for that (I used setuptools-0.6a9). 71 74 72 ==== = Releases =====75 ==== Releases ==== 73 76 || '''Version''' || mercurial-plugin || Trac vc-refactoring || Compatible with hg || 74 || '''0.3''' || ''latest-0.11'' || [milestone:0.11] or [source:trunk] || 0.7, 0.8,0.9, tip ||75 || '''0.2''' || ''latest'' || [milestone:0.10]|| 0.7, 0.8, 0.9, tip ||76 || '''0.2'''|| '''r3014''' || [source:trunk@2900] || 0.7, 0.8, tip ||77 || '''0.2'''|| '''r2905''' || '''r2905''' || 0.7, 0.8, tip ||77 || '''0.11.0.1'''|| ''latest-0.11'' || [milestone:0.11] or [source:trunk] || 0.9, tip || 78 || '''0.10.0.2'''|| ''0.10-stable'' || [milestone:0.10] || 0.7, 0.8, 0.9, tip || 79 || 0.2 || '''r3014''' || [source:trunk@2900] || 0.7, 0.8, tip || 80 || 0.2 || '''r2905''' || '''r2905''' || 0.7, 0.8, tip || 78 81 || || r2620 || r2620 || 0.7, tip with 1d7d0c07 || 79 82 || 0.1 || r2514 || r2511 || 0.7, tip without 1d7d0c07 || 80 83 81 84 82 === = Mercurial ====85 === Mercurial === 83 86 The plugin has been tested with recent development versions of Mercurial 84 87 (upto Changeset 3324:34f08b8883cf from http://selenic.com/hg) 85 88 and also with Mercurial 0.7 and 0.8. 86 89 '''It won't work with earlier versions, in particular not with 0.6x.''' 90 91 The plugin for 0.11 takes benefit of some new features introduced after the 0.8.2 release of Mercurial, and therefore needs at least a 0.9 version of Mercurial. 87 92 88 93 You can download Mercurial itself from … … 111 116 If you installed the egg globally and you're modifying an 112 117 existing Trac environment to use the Mercurial backend, 113 then you have to explicitely ''enable'' the plugin in TracIni: 118 then you have to explicitely ''enable'' the plugin in TracIni. 119 120 For the 0.10 plugin, this is done like that: 114 121 {{{ 115 122 [components] … … 117 124 }}} 118 125 119 Note: on dec 10 2006, using svn version of both trac and TracMercurial, I had to replace the above with 126 For the 0.11 plugin, the package has been renamed to `tracext`: 120 127 {{{ 121 128 [components] … … 130 137 For general instructions, see TracInstall. 131 138 132 Since milestone:0.10, the TracAdmin `initenv` command has139 Since [milestone:0.10], the TracAdmin `initenv` command has 133 140 now a ''repository type'' argument besides ''repository directory''. 134 141 … … 164 171 even if there's currently ''no'' caching in the database 165 172 (this is what I'm going to work on next). 173 Don't even think about using the plugin on a Linux-kernel-sized Mercurial repository, you'll probably burn your disk and/or CPUs ;) 166 174 167 175 For those used to Subversion in general and Subversion repository browsing … … 204 212 205 213 206 === TracBrowser changes ===214 === TracBrowser changes in [milestone:0.11] === 207 215 208 216 The TracBrowser ''View revision'' form has been extended with 209 217 pulldown menus for jumping to a given tag or branch (in Mercurial, 210 218 a branch within a repository corresponds to a head, i.e. a 211 changeset without children): [[Image(hg-plugin-browser.png)]] 212 213 ''has to be re-added'' 219 changeset without children): 220 ---- 221 [[Image(hg-plugin-browser.png)]] 222 ---- 223 There's also support for visual ''blame'' annotations: 224 ---- 225 [[Image(wiki:ChristianBoos:blame-screenshot2.png)]] 214 226 215 227 == Bugs and Limitations ==