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

Uploaded Source

Built Distribution

swh.loader.mercurial-3.6.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for swh_loader_mercurial-3.6.0.tar.gz
Algorithm Hash digest
SHA256 326b4be5e0a0fb3afba9b6f6fdccb4ecd5ea06a278ba6ce46444292907cbd25f
MD5 a7c2525703f617d62a01d473915c6213
BLAKE2b-256 669f2e69ed7ff5712ba313a9e9bf69c2c75b538798878b096fc4cf05f2e4ddfd

See more details on using hashes here.

File details

Details for the file swh.loader.mercurial-3.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for swh.loader.mercurial-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 050f100d7b9391bfbcce550765725fdff8a7ea5695eca22f1680c5b93ee4a84f
MD5 43c6a81656611eccdbaa263f25b93af0
BLAKE2b-256 51341f0eee27271eb50ad68f0c8b12568d87a02398040a31be59451b96048e1f

See more details on using hashes here.

Supported by

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