commit - e3840f7501a7dbea6e169bd9c0d0fa8a49476af0
commit + 819d2b0944386c534090ca35c59b82948689b165
blob - bd5c4b65d0adb1db728a1c1dc33c23318d91840e
blob + dff0c8e1274c3475821d9c123b5bf148b826d11c
--- swh/loader/git/loader.py
+++ swh/loader/git/loader.py
try:
tag_vertices = self._object_graph.vs.select(object_type=GitObjectType.TAG)
tag_hashes = [t["name"] for t in tag_vertices]
- self.log.debug(f" have {len(tag_hashes)} tags")
missing_releases = set(self.storage.release_missing(tag_hashes))
- self.log.debug(f" have {len(missing_releases)} missing tags")
except KeyError:
- self.log.debug(" have no tags")
pass
for tree_hash in missing_directories:
storage_summary.update(self.storage.revision_add([revision]))
for tag_hash in missing_releases:
- self.log.debug(
- f" sending tag {hashutil.hash_to_bytehex(tag_hash)!r} to storage"
- )
obj = self.pack[hashutil.hash_to_bytehex(tag_hash)]
if obj.id in self.ref_object_types:
self.ref_object_types[obj.id] = SnapshotTargetType.RELEASE