Page MenuHomeSoftware Heritage

D2769.id.diff
No OneTemporary

D2769.id.diff

diff --git a/swh/loader/svn/loader.py b/swh/loader/svn/loader.py
--- a/swh/loader/svn/loader.py
+++ b/swh/loader/svn/loader.py
@@ -533,8 +533,9 @@
snapshot=self._snapshot
)
self.flush()
- self.storage.origin_visit_update(
- self.origin.url, self.visit.visit, snapshot=snapshot.id)
+ if snapshot:
+ self.storage.origin_visit_update(
+ self.origin.url, self.visit.visit, snapshot=snapshot.id)
# reset internal state for next iteration
self._revisions = []
@@ -550,7 +551,7 @@
snapshot (dict): Snapshot to use if any (None by default)
Returns:
- dict: The newly created snapshot
+ Optional[Snapshot] The newly created snapshot
"""
if revision: # Priority to the revision

File Metadata

Mime Type
text/plain
Expires
Nov 5 2024, 6:22 PM (11 w, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222010

Event Timeline