Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346107
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/swh/loader/mercurial/tasks.py b/swh/loader/mercurial/tasks.py
index d92f3cf..b269315 100644
--- a/swh/loader/mercurial/tasks.py
+++ b/swh/loader/mercurial/tasks.py
@@ -1,33 +1,33 @@
-# Copyright (C) 2017-2018 The Software Heritage developers
+# Copyright (C) 2017-2019 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from celery import shared_task
from .loader import HgBundle20Loader, HgArchiveBundle20Loader
@shared_task(name=__name__ + '.LoadMercurial')
-def load_mercurial(*, url, directory=None, visit_date=None):
+def load_hg(*, url, directory=None, visit_date=None):
"""Mercurial repository loading
Import a mercurial tarball into swh.
Args: see :func:`DepositLoader.load`.
"""
loader = HgBundle20Loader(
url, directory=directory, visit_date=visit_date)
return loader.load()
@shared_task(name=__name__ + '.LoadArchiveMercurial')
-def load_archive_mercurial(*, url, archive_path=None, visit_date=None):
+def load_hg_from_archive(*, url, archive_path=None, visit_date=None):
"""Import a mercurial tarball into swh.
Args: see :func:`DepositLoader.load`.
"""
loader = HgArchiveBundle20Loader(
url, archive_path=archive_path, visit_date=visit_date)
return loader.load()
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jul 4, 3:44 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3236561
Attached To
rDLDHG Mercurial loader
Event Timeline
Log In to Comment