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-1.1.0.tar.gz
(95.4 kB
view hashes)
Built Distribution
Close
Hashes for swh.loader.mercurial-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b2a1e2e8c75d0e4f099d5b025db57788889e6c20718f785c3640c6553fadd4 |
|
MD5 | 6e0caa650ccd9eb93856f692de24f2e9 |
|
BLAKE2b-256 | 223eb7729b5762bfa1c7d5a8ff05da46dc5fbbd625e608096fafac8e0dd3dcc8 |
Close
Hashes for swh.loader.mercurial-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42b87ae414466e4cd9e6845a8e1d3eef2cc2132698865a2ddff5671f6548ca5 |
|
MD5 | ee9d6ec0ca5098e1e10d4dfb498dcab3 |
|
BLAKE2b-256 | e0b2b3921033e9417e28f736b1db380b292a8f1b01083c80b31bbc553a013412 |