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
Built Distribution
Close
Hashes for swh.loader.mercurial-2.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c02eb69057db37f9dbbfd24386c0f48d457dcb3c5531eec1dbf1daffaf11fa8e |
|
MD5 | cd4c60354bc00325526de557d55a3264 |
|
BLAKE2b-256 | 50b710f9da7b1d36b8f8e29afca3540ad8b2e42cb0c840f448d9f7cfb6c99a6d |
Close
Hashes for swh.loader.mercurial-2.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb461b57d2a369738a0f62172e02865d05b36c48f37c18a38518f1446b1f1aa |
|
MD5 | 87fad184bcf170907538be298d49ebeb |
|
BLAKE2b-256 | cea6aba1dc9af13d6bd2a13c02e1bb05780cac5f08fe2e8349865d2bc02c460a |