reviewboard.hostingsvcs.base.repository¶
Representations of remote repositories.
New in version 6.0: This replaces the old reviewboard.hostingsvcs.repository
module.
- class RemoteRepository(hosting_service: BaseHostingService, repository_id: str, name: str, owner: str, scm_type: str, path: str, mirror_path: Optional[str] = None, extra_data: JSONDict = {})[source]¶
Bases:
object
A representation of a remote repository.
This is used to represent the configuration for a repository that already exists on the hosting service. It does not necessarily match a repository configured on Review Board, but can be used to create one.
Changed in version 6.0:
- __init__(hosting_service: BaseHostingService, repository_id: str, name: str, owner: str, scm_type: str, path: str, mirror_path: Optional[str] = None, extra_data: JSONDict = {}) None [source]¶
Initialize the remote repository representation.
- Parameters:
hosting_service (
reviewboard.hostingsvcs.base.hosting_service.BaseHostingService
) – The hosting service that owns the repository.repository_id (
str
) – The service-specific identifier for the type of repository.name (
str
) – The displayed name of the repository.owner (
str
) – The identifier of the owner of the repository.scm_type (
str
) – The service-specific identifier for the type of repository.path (
str
) – The repository path.mirror_path (
str
, optional) – The mirror (alternate) path of the repository.extra_data (
dict
, optional) – Extra data about the repository.
- hosting_service: BaseHostingService¶
The hosting service that owns the repository.
- __annotations__ = {'extra_data': 'JSONDict', 'hosting_service': 'BaseHostingService', 'hosting_service_account': 'HostingServiceAccount', 'id': 'str', 'mirror_path': 'Optional[str]', 'name': 'str', 'owner': 'str', 'path': 'str', 'scm_type': 'str'}¶
- hosting_service_account: HostingServiceAccount¶
The account used for the hosting service.