Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345572
D5513.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
D5513.diff
View Options
diff --git a/swh/loader/mercurial/identify.py b/swh/loader/mercurial/identify.py
--- a/swh/loader/mercurial/identify.py
+++ b/swh/loader/mercurial/identify.py
@@ -347,11 +347,12 @@
) -> Iterator[RevisionIdentity]:
"""Return the repository revision identities.
- hg: A `Hg` repository instance
- rev: An optional revision or Mercurial revsets (See `hg help revsets`)
- If not provided all the repository revisions will be computed.
- node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
- It will be updated in place with new mappings.
+ Args:
+ hg: A `Hg` repository instance
+ rev: An optional revision or Mercurial revsets (See `hg help revsets`)
+ If not provided all the repository revisions will be computed.
+ 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
@@ -406,9 +407,10 @@
) -> Iterator[ReleaseIdentity]:
"""Return the repository's release identities.
- hg: A `Hg` repository instance
- node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
- If not provided it will be computed using `identify_revision`.
+ Args:
+ hg: A `Hg` repository instance
+ 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 Release
@@ -445,11 +447,12 @@
) -> CoreSWHID:
"""Return the repository snapshot identity.
- hg: A `Hg` repository instance
- node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
- If not provided it will be computed using `identify_revision`.
- release: an optional list of `ReleaseIdentity`.
- If not provided it will be computed using `identify_release`.
+ Args:
+ hg: A `Hg` repository instance
+ node_id_2_swhid: An optional cache mapping hg node ids to SWHIDs
+ If not provided it will be computed using `identify_revision`.
+ release: an optional list of `ReleaseIdentity`.
+ If not provided it will be computed using `identify_release`.
"""
from swh.model.model import Snapshot, TargetType
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:25 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218663
Attached To
D5513: Fix argument syntax to remove warnings and use Napoleon
Event Timeline
Log In to Comment