Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/loader.py
Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | def start_from(self) -> Tuple[int, int, Dict[int, Tuple[bytes, ...]]]: | ||||
self.log.debug( | self.log.debug( | ||||
( | ( | ||||
"History of svn %s@%s altered. " | "History of svn %s@%s altered. " | ||||
"A complete reloading of the repository will be performed." | "A complete reloading of the repository will be performed." | ||||
), | ), | ||||
self.svnrepo.remote_url, | self.svnrepo.remote_url, | ||||
revision_start, | revision_start, | ||||
) | ) | ||||
revision_start = self.svnrepo.initial_revision() | revision_start = 0 | ||||
# now we know history is ok, we start at next revision | # now we know history is ok, we start at next revision | ||||
revision_start = revision_start + 1 | revision_start = revision_start + 1 | ||||
# and the parent become the latest know revision for | # and the parent become the latest know revision for | ||||
# that repository | # that repository | ||||
revision_parents[revision_start] = (self.latest_revision.id,) | revision_parents[revision_start] = (self.latest_revision.id,) | ||||
if revision_start > revision_end: | if revision_start > revision_end: | ||||
▲ Show 20 Lines • Show All 527 Lines • Show Last 20 Lines |