commit 6696db87df596de8919995f7239e85752ae6fba1 from: Stefan Sperling date: Fri Oct 04 15:08:00 2024 UTC clear lists of added vertices commit - 37fcc2f01565ecba5b08bf3e04cfb7ca4cb51bad commit + 6696db87df596de8919995f7239e85752ae6fba1 blob - 1a0e70965e64e6d061bd62e5035363fe8bb88b90 blob + 29f2a42d7bc24059eff3bc060e52b87a482491f2 --- swh/loader/git/loader.py +++ swh/loader/git/loader.py @@ -995,11 +995,14 @@ class GitLoader(BaseGitLoader): num_objects_found += len(new_trees) + len(new_blobs) if len(new_trees) > 0: add_vertices(tree_graph, new_trees, GitObjectType.TREE) + new_trees = [] if len(new_blobs) > 0: add_vertices(tree_graph, new_blobs, GitObjectType.BLOB) + new_blobs = [] if len(new_edges) > 0: num_tree_entries += len(new_edges) tree_graph.add_edges(new_edges) + new_edges = [] logger.info( f"Added {int((num_objects_found * 100) / num_objects_left)}% "