Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/snapshot_context.py
Show First 20 Lines • Show All 819 Lines • ▼ Show 20 Lines | if root_directory: | ||||
nb_files = len(files) | nb_files = len(files) | ||||
nb_dirs = len(dirs) | nb_dirs = len(dirs) | ||||
dir_path = "/" + path | dir_path = "/" + path | ||||
swh_objects = [] | swh_objects = [] | ||||
vault_cooking = {} | vault_cooking = {} | ||||
revision_found = False | revision_found = False | ||||
if sha1_git is None and revision_id is not None: | if revision_id is not None: | ||||
try: | try: | ||||
archive.lookup_revision(revision_id) | archive.lookup_revision(revision_id) | ||||
except NotFoundExc: | except NotFoundExc: | ||||
pass | pass | ||||
else: | else: | ||||
revision_found = True | revision_found = True | ||||
if sha1_git is not None: | if sha1_git is not None: | ||||
▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines |