| 21 | = Installation (with mercurial) = |
| 22 | |
| 23 | A current installation procedure which works is the following: |
| 24 | |
| 25 | 1. Check out the mercurial plugin: |
| 26 | {{{ |
| 27 | svn co http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin-0.12 |
| 28 | }}} |
| 29 | 2. build the mercurial plugin. From within the checked-out directory, build the egg file (it will end up in the dist subdirectory): |
| 30 | {{{ |
| 31 | python setup.py bdist_egg |
| 32 | }}} |
| 33 | 3. Check out the multirepos branch: |
| 34 | {{{ |
| 35 | svn co http://svn.edgewall.com/repos/trac/sandbox/multirepos |
| 36 | }}} |
| 37 | 4. Install the multirepos version of trac (from within the multirepos directory, as root): |
| 38 | {{{ |
| 39 | python setup.py install |
| 40 | }}} |
| 41 | 5. Create your trac environment directory |
| 42 | |
| 43 | 6. Copy the mercurial plugin egg file to the <trac-env>/plugins directory |
| 44 | |
| 45 | 7. make sure the following is somewhere in <trac-env>/conf/trac.ini, adding all the desired repositories to the [repositories] section: |
| 46 | {{{ |
| 47 | [components] |
| 48 | tracext.hg.* = enabled |
| 49 | |
| 50 | [repositories] |
| 51 | my_repository_a.dir = <path_to_a_repository> |
| 52 | my_repository_b.dir = <path_to_another_repository> |
| 53 | |
| 54 | [trac] |
| 55 | repository_dir = <path_to_default_repository> |
| 56 | repository_type = hg |
| 57 | }}} |
| 58 | 8. Cross your fingers, and hope it works :) |