Changes between Version 3 and Version 4 of DarcsPlugin


Ignore:
Timestamp:
02/12/06 00:00:09 (7 years ago)
Author:
Lele Gaifax
Comment:

Completed

Legend:

Unmodified
Added
Removed
Modified
  • DarcsPlugin

    v3 v4  
    55  http://artiemestieri.tn.it/~lele/projects/trac-darcs 
    66 
    7 '''Beware''', it's still incomplete and wrong: first, the setuptools config is currently wrong, second, `DarcsRepository.get_changes()`, a new API, is plain wrong, and I need to figure out what it should do. 
     7== Installing the module as a builtin == 
    88 
    99If you want to try it out follow these directions: 
     
    4040   c. $ ~/.system/bin/trac-admin initenv 
    4141}}} 
     42 
     43== Installing an egg == 
     44 
     45The 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 
     49The 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 
     61The 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 
     68It 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