Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124342
D6513.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D6513.diff
View Options
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -5,12 +5,13 @@
Git repository and inject into the SWH dataset all contained files that
weren't known before.
-The main entry points are
+The main entry points are:
-- :class:`swh.loader.git.loader.GitLoader` for the main loader which ingests a remote git
- repository's contents.
+- :class:`swh.loader.git.loader.GitLoader` for the main loader which can ingest either
+ local or remote git repository's contents. This is the main implementation deployed in
+ production.
-- :class:`swh.loader.git.from_disk.GitLoaderFromDisk` which ingests a local git clone
+- :class:`swh.loader.git.from_disk.GitLoaderFromDisk` which ingests only local git clone
repository.
- :class:`swh.loader.git.loader.GitLoaderFromArchive` which ingests a git repository
diff --git a/requirements-test.txt b/requirements-test.txt
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -3,4 +3,5 @@
swh.scheduler[testing] >= 0.5.0
swh.storage[testing]
types-click
+types-Deprecated
types-python-dateutil
diff --git a/swh/loader/git/from_disk.py b/swh/loader/git/from_disk.py
--- a/swh/loader/git/from_disk.py
+++ b/swh/loader/git/from_disk.py
@@ -17,6 +17,7 @@
# dulwich >= 0.20
from dulwich.objects import EmptyFileException
+from deprecated import deprecated
import dulwich.objects
import dulwich.repo
@@ -85,6 +86,7 @@
last = field
+@deprecated(version="1.1", reason="Use `swh.loader.git.loader.GitLoader` instead")
class GitLoaderFromDisk(DVCSLoader):
"""Load a git repository from a directory.
diff --git a/swh/loader/git/loader.py b/swh/loader/git/loader.py
--- a/swh/loader/git/loader.py
+++ b/swh/loader/git/loader.py
@@ -497,6 +497,9 @@
level=logging.DEBUG, format="%(asctime)s %(process)d %(message)s"
)
+ from deprecated import deprecated
+
+ @deprecated(version="1.1", reason="Use `swh loader run git --help` instead")
@click.command()
@click.option("--origin-url", help="Origin url", required=True)
@click.option("--base-url", default=None, help="Optional Base url")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 8:05 AM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218112
Attached To
D6513: git: Deprecate no longer running nor used code
Event Timeline
Log In to Comment