Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/cgit/lister.py
Show All 27 Lines | class CGitLister(ListerBase): | ||||
For each found git repository, a query is made at the given url found | For each found git repository, a query is made at the given url found | ||||
in this index to gather published "Clone" URLs to be used as origin | in this index to gather published "Clone" URLs to be used as origin | ||||
URL for that git repo. | URL for that git repo. | ||||
If several "Clone" urls are provided, prefer the http/https one, if | If several "Clone" urls are provided, prefer the http/https one, if | ||||
any, otherwise fall bak to the first one. | any, otherwise fall bak to the first one. | ||||
A loader task is created for each git repository: | A loader task is created for each git repository:: | ||||
Task: | Task: | ||||
Type: load-git | Type: load-git | ||||
Policy: recurring | Policy: recurring | ||||
Args: | Args: | ||||
<git_clonable_url> | <git_clonable_url> | ||||
Example: | Example:: | ||||
Task: | |||||
Type: load-git | Type: load-git | ||||
Policy: recurring | Policy: recurring | ||||
Args: | Args: | ||||
'https://git.savannah.gnu.org/git/elisp-es.git' | 'https://git.savannah.gnu.org/git/elisp-es.git' | ||||
""" | """ | ||||
MODEL = CGitModel | MODEL = CGitModel | ||||
DEFAULT_URL = 'https://git.savannah.gnu.org/cgit/' | DEFAULT_URL = 'https://git.savannah.gnu.org/cgit/' | ||||
LISTER_NAME = 'cgit' | LISTER_NAME = 'cgit' | ||||
url_prefix_present = True | url_prefix_present = True | ||||
def __init__(self, url=None, instance=None, override_config=None): | def __init__(self, url=None, instance=None, override_config=None): | ||||
"""Lister class for CGit repositories. | """Lister class for CGit repositories. | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |