| | 42 | |
| | 43 | == Installing an egg == |
| | 44 | |
| | 45 | The module is `setuptools`-aware, you can follow the good directions on [http://projects.edgewall.com/trac/wiki/TracPlugins TracPlugins]. |
| | 46 | |
| | 47 | === Enabling the plugin === |
| | 48 | |
| | 49 | The plugin, if installed as a global egg, needs to be enabled, with something like |
| | 50 | |
| | 51 | {{{ |
| | 52 | [components] |
| | 53 | trac.versioncontrol.svn_fs.* = disabled |
| | 54 | darcstrac.* = enabled |
| | 55 | }}} |
| | 56 | |
| | 57 | (''not sure if disabling svn is actually needed'') |
| | 58 | |
| | 59 | == Configuration == |
| | 60 | |
| | 61 | The DarcsPlugin follows the standard TracIni options to indicate the repository, such as |
| | 62 | {{{ |
| | 63 | [trac] |
| | 64 | repository_type=darcs |
| | 65 | repository_dir=/path/to/darcs/repository |
| | 66 | }}} |
| | 67 | |
| | 68 | It uses the following settings, if provided, in the `[darcs]` section of the TracIni file. |
| | 69 | |
| | 70 | || `cachedir` || By default the darcs backend keeps a cache of the visited files at various revision inside the repository itself, in `_darcs/trac_cache`, that may be overridden by this option, setting it to the desired directory that needs to be writeable by the trac process. || |
| | 71 | || `command` || Name of the external darcs executable, default to `darcs`. This can be used to set up the environment as well, like in "`DARCS_DONT_ESCAPE_ANYTHING=1 /usr/local/bin/darcs`" || |
| | 72 | || `dont_escape_8bit` || This is a shortcut for "`command=DARCS_DONT_ESCAPE_8BIT=1 darcs`" (true, false). Default to false. || |
| | 73 | || `encoding` || Specify the encoding to be used on this repository. This goes together with `dont_escape_8bit`, when your repository metadata contains non-ascii glyphs. || |
| | 74 | |