diff --git a/swh/loader/mercurial/tasks.py b/swh/loader/mercurial/tasks.py --- a/swh/loader/mercurial/tasks.py +++ b/swh/loader/mercurial/tasks.py @@ -9,7 +9,8 @@ from swh.loader.mercurial.utils import parse_visit_date -from .loader import HgArchiveBundle20Loader, HgBundle20Loader +from .from_disk import HgLoaderFromDisk +from .loader import HgArchiveBundle20Loader @shared_task(name=__name__ + ".LoadMercurial") @@ -24,7 +25,7 @@ """ - loader = HgBundle20Loader.from_configfile( + loader = HgLoaderFromDisk.from_configfile( url=url, directory=directory, visit_date=parse_visit_date(visit_date) ) return loader.load()