Skip to main content

Mercurial extension to do sanity checks on commits.

Project description

hg-commit-sanity: Mercurial Commit Sanity

.. image::
.. image::
.. image::

``hg-commit-sanity`` is a Mercurial extension that allows to easily create precommit hooks to do sanity checks on commits.

Kudos to `Matthew Schinckel <>`_


.. sourcecode ::

pip install hg-commit-sanity


An example of your .hgrc:

.. code-block:: cfg

hg_commit_sanity =

.py =
^[^#]*import pdb; pdb.set_trace\(\)
.js =

This will Abort the commit in case it will find import pdb; pdb.set_trace() in *.py files and console. in *.js files


If you have questions, bug reports, suggestions, etc. please create an issue on the `GitHub project page <>`_.


This software is licensed under the `MIT license <>`_


© 2013 Paylogic International.



- initial version

Download files

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

Source Distribution

hg-commit-sanity-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded source

Supported by

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