Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392966
PKG-INFO
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
PKG-INFO
View Options
Metadata-Version: 2.1
Name: swh.loader.mercurial
Version: 3.1.1
Summary: Software Heritage Mercurial Loader
Home-page: https://forge.softwareheritage.org/diffusion/DLDHG/
Author: Software Heritage developers
Author-email: swh-devel@inria.fr
License: UNKNOWN
Project-URL: Bug Reports, https://forge.softwareheritage.org/maniphest
Project-URL: Funding, https://www.softwareheritage.org/donate
Project-URL: Source, https://forge.softwareheritage.org/source/swh-loader-mercurial
Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-loader-mercurial/
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: testing
License-File: LICENSE
License-File: AUTHORS
swh-loader-mercurial
=========================
The Software Heritage Mercurial Loader is a tool and a library to walk a local mercurial
repository and inject into the SWH dataset all contained files that weren't known
before.
The main entry points are:
- :class:`swh.loader.mercurial.loader.HgLoader` which reads and loads a local
repository into an SWH archive.
- :class:`swh.loader.mercurial.loader.HgArchiveLoader` which reads and loads
a local repository wrapped within a tarball
# CLI run
## Configuration file
/tmp/mercurial.yml:
``` YAML
storage:
cls: remote
args:
url: http://localhost:5002/
```
## Basic use
``` bash
swh loader --C /tmp/mercurial.yml run mercurial https://www.mercurial-scm.org/repo/hello
```
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:05 PM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398934
Attached To
rDLDHG Mercurial loader
Event Timeline
Log In to Comment