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:

  • :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


  cls: remote
    url: http://localhost:5002/

Basic use

swh loader --C /tmp/mercurial.yml run mercurial

or mercurial_from_disk

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for swh.loader.mercurial, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size swh.loader.mercurial-2.0.0-py3-none-any.whl (111.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size swh.loader.mercurial-2.0.0.tar.gz (100.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page