Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/loader.py
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | def start_from(self) -> Tuple[int, int, Dict[int, Tuple[bytes, ...]]]: | ||||
"svn export --ignore-keywords %s@%s", | "svn export --ignore-keywords %s@%s", | ||||
self.svnrepo.remote_url, | self.svnrepo.remote_url, | ||||
revision_start, | revision_start, | ||||
) | ) | ||||
if not self.check_history_not_altered( | if not self.check_history_not_altered( | ||||
self.svnrepo, revision_start, self.latest_revision | self.svnrepo, revision_start, self.latest_revision | ||||
): | ): | ||||
msg = "History of svn %s@%s altered. Skipping..." % ( | self.log.debug( | ||||
( | |||||
"History of svn %s@%s altered. " | |||||
"A complete reloading of the repository will be performed." | |||||
), | |||||
ardumont: Make it at least informational so we can notice it happens. | |||||
self.svnrepo.remote_url, | self.svnrepo.remote_url, | ||||
revision_start, | revision_start, | ||||
) | ) | ||||
raise SvnLoaderHistoryAltered(msg) | revision_start = self.svnrepo.initial_revision() | ||||
# 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 507 Lines • Show Last 20 Lines |
Make it at least informational so we can notice it happens.