Skip to content

loader: Fix if condition in SvnLoaderFromRemoteDump.dump_revisions

An error was raised when the last dumped subversion revision was equal to the last one loaded into the archive.

[2022-01-25 19:46:20,607: ERROR/ForkPoolWorker-23] Loading failure, updating to `failed` status
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/swh/loader/core/loader.py", line 335, in load
    self.prepare()
  File "/usr/lib/python3/dist-packages/swh/loader/svn/loader.py", line 811, in prepare
    dump_path = self.dump_svn_revisions(self.svn_url, last_loaded_svn_rev)
  File "/usr/lib/python3/dist-packages/swh/loader/svn/loader.py", line 771, in dump_svn_revisions
    % (last_dumped_rev, last_loaded_svn_rev)
Exception: Last dumped subversion revision (8557) is lesser than the last one loaded into the archive (8557).

Depends on !110 (closed)


Migrated from D7043 (view on Phabricator)

Merge request reports