Skip to content
Snippets Groups Projects
Verified Commit c843ea5c authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

git: Deprecate no longer running or used code

parent 0e824769
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,13 @@ The Software Heritage Git Loader is a tool and a library to walk a local
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
......
......@@ -3,4 +3,5 @@ pytest-mock
swh.scheduler[testing] >= 0.5.0
swh.storage[testing]
types-click
types-Deprecated
types-python-dateutil
......@@ -17,6 +17,7 @@ except ImportError:
# dulwich >= 0.20
from dulwich.objects import EmptyFileException
from deprecated import deprecated
import dulwich.objects
import dulwich.repo
......@@ -85,6 +86,7 @@ def _check_tag(tag):
last = field
@deprecated(version="1.1", reason="Use `swh.loader.git.loader.GitLoader` instead")
class GitLoaderFromDisk(DVCSLoader):
"""Load a git repository from a directory.
......
......@@ -497,6 +497,9 @@ if __name__ == "__main__":
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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment