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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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