Software Heritage Mercurial Loader
Project description
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.HgBundle20Loader
which reads and loads a remote repository (or local). -
:class:
swh.loader.mercurial.from_disk.HgLoaderFromDisk
which reads and loads a local repository into an SWH archive. -
:class:
swh.loader.mercurial.from_disk.HgArchiveLoaderFromDisk
which reads and loads a local repository wrapped within a tarball
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
or mercurial_from_disk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swh.loader.mercurial-2.3.0.tar.gz
(101.1 kB
view hashes)
Built Distribution
Close
Hashes for swh.loader.mercurial-2.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc093ead5f6602fa7c2f6e72bc5bb1f93bc2b7ec51c8d647f0a2cc1a8f3658b |
|
MD5 | 5cd2e43d9ce83d717107eefc989d99a2 |
|
BLAKE2b-256 | ce5992005a0dc8179c154293bf541f97b9ff5fd52dfc1d6195555067aa678a2d |
Close
Hashes for swh.loader.mercurial-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78f3d26d7b580d77eda140dc75e4a72731ac77460e7f592b6b0900c27a8b4122 |
|
MD5 | b3390d28583013390e88f9205ed6dcbc |
|
BLAKE2b-256 | 0575789fe3a301407cce84ee8d23f226f6e89e489b724b0b3ada3a68ae32117e |