Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-loader-mercurial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Antoine R. Dumont
swh-loader-mercurial
Commits
f03f2740
Commit
f03f2740
authored
3 years ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
Fix argument syntax to remove warnings and use Napoleon
parent
cc04dd0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/loader/mercurial/identify.py
+16
-13
16 additions, 13 deletions
swh/loader/mercurial/identify.py
with
16 additions
and
13 deletions
swh/loader/mercurial/identify.py
+
16
−
13
View file @
f03f2740
...
@@ -347,11 +347,12 @@ def identify_revision(
...
@@ -347,11 +347,12 @@ def identify_revision(
) -> Iterator[RevisionIdentity]:
) -> Iterator[RevisionIdentity]:
"""
Return the repository revision identities.
"""
Return the repository revision identities.
hg: A `Hg` repository instance
Args:
rev: An optional revision or Mercurial revsets (See `hg help revsets`)
hg: A `Hg` repository instance
If not provided all the repository revisions will be computed.
rev: An optional revision or Mercurial revsets (See `hg help revsets`)
node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
If not provided all the repository revisions will be computed.
It will be updated in place with new mappings.
node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
It will be updated in place with new mappings.
"""
"""
from swh.model.model import Revision
from swh.model.model import Revision
...
@@ -406,9 +407,10 @@ def identify_release(
...
@@ -406,9 +407,10 @@ def identify_release(
) -> Iterator[ReleaseIdentity]:
) -> Iterator[ReleaseIdentity]:
"""
Return the repository
'
s release identities.
"""
Return the repository
'
s release identities.
hg: A `Hg` repository instance
Args:
node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
hg: A `Hg` repository instance
If not provided it will be computed using `identify_revision`.
node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
If not provided it will be computed using `identify_revision`.
"""
"""
from swh.model.model import ObjectType as ModelObjectType
from swh.model.model import ObjectType as ModelObjectType
from swh.model.model import Release
from swh.model.model import Release
...
@@ -445,11 +447,12 @@ def identify_snapshot(
...
@@ -445,11 +447,12 @@ def identify_snapshot(
) -> CoreSWHID:
) -> CoreSWHID:
"""
Return the repository snapshot identity.
"""
Return the repository snapshot identity.
hg: A `Hg` repository instance
Args:
node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
hg: A `Hg` repository instance
If not provided it will be computed using `identify_revision`.
node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
release: an optional list of `ReleaseIdentity`.
If not provided it will be computed using `identify_revision`.
If not provided it will be computed using `identify_release`.
release: an optional list of `ReleaseIdentity`.
If not provided it will be computed using `identify_release`.
"""
"""
from swh.model.model import Snapshot, TargetType
from swh.model.model import Snapshot, TargetType
...
...
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