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

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
hg-commit-sanity-0.0.1.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page