Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-loader-git-old
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Dandrimont
swh-loader-git-old
Commits
c843ea5c
Verified
Commit
c843ea5c
authored
3 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
git: Deprecate no longer running or used code
parent
0e824769
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+5
-4
5 additions, 4 deletions
README.md
requirements-test.txt
+1
-0
1 addition, 0 deletions
requirements-test.txt
swh/loader/git/from_disk.py
+2
-0
2 additions, 0 deletions
swh/loader/git/from_disk.py
swh/loader/git/loader.py
+3
-0
3 additions, 0 deletions
swh/loader/git/loader.py
with
11 additions
and
4 deletions
README.md
+
5
−
4
View file @
c843ea5c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
requirements-test.txt
+
1
−
0
View file @
c843ea5c
...
...
@@ -3,4 +3,5 @@ pytest-mock
swh.scheduler[testing] >= 0.5.0
swh.storage[testing]
types-click
types-Deprecated
types-python-dateutil
This diff is collapsed.
Click to expand it.
swh/loader/git/from_disk.py
+
2
−
0
View file @
c843ea5c
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
swh/loader/git/loader.py
+
3
−
0
View file @
c843ea5c
...
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment