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.0.0.tar.gz
(100.1 kB
view hashes)
Built Distribution
Close
Hashes for swh.loader.mercurial-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb933129b1787e95ff08a2ef0f7c9bc941e172a75fedc00fce35789ae400571a |
|
MD5 | 490817819c23b8695a4b641ea2d05d87 |
|
BLAKE2b-256 | 1fe8a34d10aaacae4e289f2a0625873886c568ab786c980d0798b586ec7ec89e |
Close
Hashes for swh.loader.mercurial-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b95fa7f378f0f603a67aed69b7900f7eeaafa72cee50ac751aaf1e7f2d7df10a |
|
MD5 | a48e1bba56306b02a9204ace268d154e |
|
BLAKE2b-256 | 46859ae35afd6d210d26a4e026988e97497f6ddbb7f54b68d033f2b10b822b4b |