Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/git/loader.py
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
class GitLoader(UnbufferedLoader): | class GitLoader(UnbufferedLoader): | ||||
"""A bulk loader for a git repository""" | """A bulk loader for a git repository""" | ||||
CONFIG_BASE_FILENAME = 'loader/git' | CONFIG_BASE_FILENAME = 'loader/git' | ||||
ADDITIONAL_CONFIG = { | ADDITIONAL_CONFIG = { | ||||
'pack_size_bytes': ('int', 4 * 1024 * 1024 * 1024), | 'pack_size_bytes': ('int', 4 * 1024 * 1024 * 1024), | ||||
} | } | ||||
visit_type = 'git' | |||||
def __init__(self, repo_representation=RepoRepresentation, config=None): | def __init__(self, repo_representation=RepoRepresentation, config=None): | ||||
"""Initialize the bulk updater. | """Initialize the bulk updater. | ||||
Args: | Args: | ||||
repo_representation: swh's repository representation | repo_representation: swh's repository representation | ||||
which is in charge of filtering between known and remote | which is in charge of filtering between known and remote | ||||
data. | data. | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |