Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/git/loader.py
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | ): | ||||
data. | data. | ||||
""" | """ | ||||
super().__init__(logging_class="swh.loader.git.BulkLoader", config=config) | super().__init__(logging_class="swh.loader.git.BulkLoader", config=config) | ||||
self.origin_url = url | self.origin_url = url | ||||
self.base_url = base_url | self.base_url = base_url | ||||
self.ignore_history = ignore_history | self.ignore_history = ignore_history | ||||
self.repo_representation = repo_representation | self.repo_representation = repo_representation | ||||
# state initialized in fetch_data | |||||
self.remote_refs = [] | |||||
self.local_refs = {} | |||||
self.symbolic_refs = {} | |||||
def fetch_pack_from_origin(self, origin_url, base_snapshot, do_activity): | def fetch_pack_from_origin(self, origin_url, base_snapshot, do_activity): | ||||
"""Fetch a pack from the origin""" | """Fetch a pack from the origin""" | ||||
pack_buffer = BytesIO() | pack_buffer = BytesIO() | ||||
base_repo = self.repo_representation( | base_repo = self.repo_representation( | ||||
storage=self.storage, | storage=self.storage, | ||||
base_snapshot=base_snapshot, | base_snapshot=base_snapshot, | ||||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |