Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/loader.py
Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | ) -> None: | ||||
if checked_dir_id != dir_id: | if checked_dir_id != dir_id: | ||||
# do not bother checking tree differences if root directory id of reconstructed | # do not bother checking tree differences if root directory id of reconstructed | ||||
# repository filesystem does not match the id of the one from the last loaded | # repository filesystem does not match the id of the one from the last loaded | ||||
# revision (can happen when called from post_load and tree differences were checked | # revision (can happen when called from post_load and tree differences were checked | ||||
# before the last revision to load) | # before the last revision to load) | ||||
if self.debug and dir_id == dir.hash: | if self.debug and dir_id == dir.hash: | ||||
for obj in checked_dir.iter_tree(): | for obj in checked_dir.iter_tree(): | ||||
path = obj.data["path"].replace(checked_dir.data["path"], b"")[1:] | path = obj.data["path"].replace(checked_dir.data["path"], b"") | ||||
if not path: | if not path: | ||||
# ignore root directory | # ignore root directory | ||||
continue | continue | ||||
if path not in dir: | if path not in dir: | ||||
self.log.debug( | self.log.debug( | ||||
"%s with path %s is missing in reconstructed repository filesystem", | "%s with path %s is missing in reconstructed repository filesystem", | ||||
obj.object_type, # type: ignore | obj.object_type, # type: ignore | ||||
path, | path, | ||||
▲ Show 20 Lines • Show All 569 Lines • Show Last 20 Lines |