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:
swh.loader.mercurial.loader.HgLoader which reads and loads a local repository into an SWH archive.
swh.loader.mercurial.loader.HgArchiveLoader which reads and loads a local repository wrapped within a tarball
swh.loader.mercurial.directory.HgCheckoutLoader which ingests the hg tree at a specific changeset or tag.
CLI run
Configuration file
/tmp/mercurial.yml:
storage:
cls: remote
args:
url: http://localhost:5002/
Basic use
swh loader --C /tmp/mercurial.yml run mercurial https://www.mercurial-scm.org/repo/hello
Metadata
Release files for swh.loader.mercurial 3.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swh_loader_mercurial-3.6.3.tar.gz | 2.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swh_loader_mercurial-3.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 MB
Release files / swh_loader_mercurial-3.6.3.tar.gz
| Download URL | swh_loader_mercurial-3.6.3.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee399773ac7395feb067002c01afd52a639175c191e5fad13a2d99daaf25f110
|
|
BLAKE2b-256 checksum How to use checksums |
8b673185a471431b78a78d1412a97fa7de03bde92585a90705892200f5f4bec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.12
|
Release files / swh_loader_mercurial-3.6.3-py3-none-any.whl
| Download URL | swh_loader_mercurial-3.6.3-py3-none-any.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acafeb0efd765f32392c47c4d7e6b1f5c6ed2f68b2eb5bf5172450a465b9ed11
|
|
BLAKE2b-256 checksum How to use checksums |
b4d42cc33dfdf2db249b4dc4344dec2b50efdc93ad0cb572b340f3c2f62fbb9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.12
|