Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/tasks.py
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | return SvnLoaderFromDumpArchive(archive_path).load( | ||||
svn_url=None, | svn_url=None, | ||||
origin_url=origin_url, | origin_url=origin_url, | ||||
visit_date=visit_date, | visit_date=visit_date, | ||||
archive_path=archive_path, | archive_path=archive_path, | ||||
start_from_scratch=start_from_scratch) | start_from_scratch=start_from_scratch) | ||||
@app.task(name=__name__ + '.DumpMountAndLoadSvnRepository') | @app.task(name=__name__ + '.DumpMountAndLoadSvnRepository') | ||||
def dump_mount_load_svn(self, *, svn_url, origin_url=None, visit_date=None, | def dump_mount_load_svn(svn_url, origin_url=None, visit_date=None, | ||||
start_from_scratch=False): | start_from_scratch=False): | ||||
"""1. Mount an svn dump from archive as a local svn repository. | """1. Mount an svn dump from archive as a local svn repository. | ||||
2. Load it through the svn loader. | 2. Load it through the svn loader. | ||||
3. Clean up mounted svn repository archive. | 3. Clean up mounted svn repository archive. | ||||
""" | """ | ||||
return SvnLoaderFromRemoteDump().load( | return SvnLoaderFromRemoteDump().load( | ||||
svn_url=svn_url, | svn_url=svn_url, | ||||
origin_url=origin_url, | origin_url=origin_url, | ||||
visit_date=visit_date, | visit_date=visit_date, | ||||
start_from_scratch=start_from_scratch) | start_from_scratch=start_from_scratch) |