Edgewall Software

Changes between Version 8 and Version 9 of TracMercurial


Ignore:
Timestamp:
Nov 6, 2005, 3:46:34 PM (18 years ago)
Author:
Christian Boos
Comment:

Expanded the installation instructions, to match r2511

Legend:

Unmodified
Added
Removed
Modified
  • TracMercurial

    v8 v9  
    3737===== Releases =====
    3838|| '''Version''' || mercurial-plugin || Trac vc-refactoring ||
    39 ||      0.1      ||       r2491      ||        r2491        ||
     39||      0.1      ||       r2491      ||        r2511        ||
    4040
    4141
     
    5050== Configuration ==
    5151
    52 For general instructions about plugins, see also TracPlugins.
    53 
    54 The plugin egg can be added to the `plugins` folder of an existing environment,
    55 or to a brand new environment. Note that if you create a new environment, it's
    56 currently necessary to leave the repository directory '''empty''' during the
    57 `initenv` step (''this will probably be fixed soon'').
    58 
    59 Then, you need to specify which version control backend has to be used:
     52The configuration has to be done on the Trac side,
     53there's nothing to do on the Mercurial repository side,
     54except that it should be made available locally.
     55
     56=== Setting up a Trac environment ===
     57
     58You can either reuse an existing Trac environment,
     59or create a brand new one.
     60
     61For general instructions, see TracInstall.
     62
     63The TracAdmin `initenv` command has been slightly modified
     64in the vc-refactoring code base: in addition to the
     65''repository directory'', it's also needed to specify the
     66''repository type''.
     67
     68For the ''repository type'', specify `hg` instead of the default `svn`.
     69For the ''repository directory'', specify the location of the Mercurial repository.
     70
     71In all case, you [wiki:TracIni <trac_environment>/conf/trac.ini] configuration file
     72should have a `[trac]` section similar to the following:
    6073{{{
    6174[trac]
     
    6376repository_dir = /path/to/my/hg/repository
    6477}}}
    65 ''Note: those installing from 0.9 + the patch on #1847 still have to specify `repository_dir=hg:/path/to/my/hg/repository`''
    66 
    67 Also, you'll need to explicitely disable the SVN components:
     78
     79''Note: those installing from 0.9 + the patch on #1847 will still have to specify `repository_dir=hg:/path/to/my/hg/repository`''
     80
     81Also, currently you still need to explicitely disable the SVN components:
    6882{{{
    6983[components]
     
    7387''Note: that constraint will most certainly be lifted in the future''
    7488
    75 Finally, if you installed the egg by doing a `python setup.py install`,
    76 there's the additional constraint of specifically ''enabling'' the plugin:
     89=== Setting up the mercurial plugin ===
     90
     91The TracMercurial-0.1 plugin egg should be added to the `plugins` folder of the
     92environment.
     93
     94For general instructions about plugins, see also TracPlugins.
     95
     96Finally, if you installed an unpacked egg by doing a `python setup.py install`
     97(useful for development), there's the additional constraint of specifically
     98''enabling'' the plugin:
    7799{{{
    78100[components]