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.HgLoader
which reads and loads a local repository into an SWH archive. -
:class:
swh.loader.mercurial.loader.HgArchiveLoader
which reads and loads a local repository wrapped within a tarball -
:class:
swh.loader.mercurial.directory.HgCheckoutLoader
which ingests the hg tree at a specific changeset or tag.
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
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-3.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc7ba33aac4e6b103c9ac20334750db9500a565dccdb61c6f7c3095e97c3084 |
|
MD5 | 8b9fc6c6eb4687c35365ec57a37d60ec |
|
BLAKE2b-256 | f026666f51386399d9eb173f9183653d67da0e3eb6f9e2cdbd84c0994361c929 |
Close
Hashes for swh.loader.mercurial-3.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b815a077ee6e54f1009d03b9d2d4604819a2812c466e8aa6d511422ad89d817e |
|
MD5 | bcc9b8759ce38ecc55bad187f452918c |
|
BLAKE2b-256 | 984aecc14351904e232b21e218640d523a8e2997c2d730e6e0c1a7e504d1e35a |