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.2.0.tar.gz
(101.1 kB
view hashes)
Built Distribution
Close
Hashes for swh.loader.mercurial-2.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7a319aacac9ff0e9dacf1cb673d153412442c5e10e5fd29b2eb8d3ee13611c |
|
MD5 | 5111b71e9fa2a288bc092beb3fb8ae24 |
|
BLAKE2b-256 | 743b97ff7721dd12b6a377775c87df75b666ca752e37c4ea2a85261d039b1435 |
Close
Hashes for swh.loader.mercurial-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2109313925a30a6a14488c96aded5b3e3f5845ec429ddfd51e15b6c6cd48b537 |
|
MD5 | 22afb86293b3451eaf60c410472adc8b |
|
BLAKE2b-256 | 75c2fe88a4497d85475ed8d05f9103025c03a152e28dadd023fd4620900ceab3 |