Skip to main content
More Mercurial (Hg)!
====================

Uses ElasticSearch as a fast cache for Mozilla's Mercurial repository.

+----------+------------------+
| Branch | Status |
+==========+==================+
| master | |Build Status| |
+----------+------------------+
| dev | |Build Status| |
+----------+------------------+

Usage
-----

Make an instance of the cache, modifying the parameters to fit your use
case

.. code:: python

hg = HgMozillaOrg({
"use_cache": true,
"hg":{
"url": "https://hg.mozilla.org"
},
"branches": {
"host": "http://localhost",
"port": 9200,
"index": "branches",
"type": "branch",
"timeout": 300,
"schema": {
"$ref": "//../resources/branch.json"
},
"debug": false,
"limit_replicas": false
},
"repo": {
"host": "http://localhost",
"port": 9200,
"index": "repo",
"type": "revision",
"timeout": 300,
"schema": {
"$ref": "//../resources/revision.json"
},
"debug": false,
"limit_replicas": false
}
})

then call ``get_revision()`` when you need a revision:

.. code:: python

rev = hg.get_revision({
"changeset":{"id": "b3649fd5cd7a76506d2cf04f45e39cbc972fb553"},
"branch": {"name": "mozilla-inbound"}
})

... and yes, the call really does require a "complicated" dict
parameter: The intent was to convert partial revision objects into
completed revision objects.

.. |Build Status| image:: https://travis-ci.org/klahnakoski/mo-hg.svg?branch=master
:target: https://travis-ci.org/klahnakoski/mo-hg
.. |Build Status| image:: https://travis-ci.org/klahnakoski/mo-hg.svg?branch=dev
:target: https://travis-ci.org/klahnakoski/mo-hg
.. |Build Status| image:: https://travis-ci.org/klahnakoski/mo-hg.svg?branch=master
:target: https://travis-ci.org/klahnakoski/mo-hg
.. |Build Status| image:: https://travis-ci.org/klahnakoski/mo-hg.svg?branch=dev
:target: https://travis-ci.org/klahnakoski/mo-hg

Metadata

Release files for mo-hg 2.18.18240

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mo-hg 2.18.18240
File Size Uploaded Provenance
mo-hg-2.18.18240.tar.gz 17.7 kB Without provenance Details

Release files / mo-hg-2.18.18240.tar.gz

Download URL mo-hg-2.18.18240.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
84a9f70d4d28590fa8c057685bc281483b8ac36c1ee0ff2d85b86a324ea83143
BLAKE2b-256 checksum
How to use checksums
7a846529af70e2354ac73883ddcf67277aa541dfcb9412e4af27fa36ebc4666e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.14

Security for mo-hg 2.18.18240

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page