Skip to main content

Software Heritage Mercurial Loader

Project description

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:

  • swh.loader.mercurial.loader.HgLoader which reads and loads a local repository into an SWH archive.

  • swh.loader.mercurial.loader.HgArchiveLoader which reads and loads a local repository wrapped within a tarball

  • 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


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-3.6.3.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swh_loader_mercurial-3.6.3-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file swh_loader_mercurial-3.6.3.tar.gz.

File metadata

  • Download URL: swh_loader_mercurial-3.6.3.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for swh_loader_mercurial-3.6.3.tar.gz
Algorithm Hash digest
SHA256 ee399773ac7395feb067002c01afd52a639175c191e5fad13a2d99daaf25f110
MD5 d17eea80977263b16058879901e2c816
BLAKE2b-256 8b673185a471431b78a78d1412a97fa7de03bde92585a90705892200f5f4bec5

See more details on using hashes here.

File details

Details for the file swh_loader_mercurial-3.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for swh_loader_mercurial-3.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acafeb0efd765f32392c47c4d7e6b1f5c6ed2f68b2eb5bf5172450a465b9ed11
MD5 7a245e735359ab9f62edee0128bbeee7
BLAKE2b-256 b4d42cc33dfdf2db249b4dc4344dec2b50efdc93ad0cb572b340f3c2f62fbb9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page