Trees Indices Help
Trac
Package trac :: Package versioncontrol :: Module api :: Class IRepositoryConnector

Class IRepositoryConnector

source code

 object --+ 
 | 
core.Interface --+
 |
 IRepositoryConnector

Provide support for a specific version control system.
Instance Methods
get_supported_types()
Return the types of version control systems that are supported. source code
get_repository(repos_type, repos_dir, params)
Return a Repository instance for the given repository type and dir. source code

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

Class Variables
error = None
hash(x)
Properties

Inherited from object: __class__

Method Details

get_supported_types()

source code

Return the types of version control systems that are supported.

Yields (repotype, priority) pairs, where repotype is used to match against the configured [trac] repository_type value in TracIni.

If multiple provider match a given type, the priority is used to choose between them (highest number is highest priority).

If the priority returned is negative, this indicates that the connector for the given repotype indeed exists but can't be used for some reason. The error property can then be used to store an error message or exception relevant to the problem detected.


Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /