Package trac :: Package versioncontrol :: Module api :: Class IRepositoryProvider

Class IRepositoryProvider

source code

    object --+    
             |    
core.Interface --+
                 |
                IRepositoryProvider

Provide known named instances of Repository.
Instance Methods
 
get_repositories()
Generate repository information for known repositories.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

get_repositories()

source code 

Generate repository information for known repositories.

Repository information is a key,value pair, where the value is a dictionary which must contain at the very least either of the following entries:

  • 'dir': the repository directory which can be used by the
    connector to create a Repository instance. This defines a "real" repository.
  • 'alias': the name of another repository. This defines an
    alias to another (real) repository.

Optional entries:

  • 'type': the type of the repository (if not given, the
    default repository type will be used).
  • 'description': a description of the repository (can
    contain WikiFormatting).
  • 'hidden': if set to 'true', the repository is hidden
    from the repository index.
  • 'url': the base URL for checking out the repository.