Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/loader.py
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | def load(self) -> Dict: | ||||
tmp_revisions[version].append((branch_name, revision_id)) | tmp_revisions[version].append((branch_name, revision_id)) | ||||
if load_exceptions: | if load_exceptions: | ||||
status_visit = 'partial' | status_visit = 'partial' | ||||
if not tmp_revisions: | if not tmp_revisions: | ||||
# We could not load any revisions; fail completely | # We could not load any revisions; fail completely | ||||
status_visit = 'failed' | status_visit = 'partial' | ||||
ardumont: or we need to amend the storage to allow it.. | |||||
status_load = 'failed' | status_load = 'failed' | ||||
return finalize_visit() | return finalize_visit() | ||||
try: | try: | ||||
# Retrieve the default release version (the "latest" one) | # Retrieve the default release version (the "latest" one) | ||||
default_version = self.get_default_version() | default_version = self.get_default_version() | ||||
logger.debug('default version: %s', default_version) | logger.debug('default version: %s', default_version) | ||||
# Retrieve extra branches | # Retrieve extra branches | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |
or we need to amend the storage to allow it..