Mercurial extension to do sanity checks on commits.
Project description
hg-commit-sanity: Mercurial Commit Sanity
=========================================
.. image:: https://api.travis-ci.org/paylogic/hg-commit-sanity.png
:target: https://travis-ci.org/paylogic/hg-commit-sanity
.. image:: https://pypip.in/v/hg-commit-sanity/badge.png
:target: https://crate.io/packages/hg-commit-sanity/
.. image:: https://coveralls.io/repos/paylogic/hg-commit-sanity/badge.png?branch=master
:target: https://coveralls.io/r/paylogic/hg-commit-sanity
``hg-commit-sanity`` is a Mercurial extension that allows to easily create precommit hooks to do sanity checks on commits.
Kudos to `Matthew Schinckel <http://schinckel.net/2013/04/07/hg-commit---prevent-stupidity>`_
Installation
------------
.. sourcecode ::
pip install hg-commit-sanity
Configuration
-------------
An example of your .hgrc:
.. code-block:: cfg
[extensions]
hg_commit_sanity =
[hg_commit_sanity]
.py =
^[^#]*import pdb; pdb.set_trace\(\)
.js =
^[^(//)]*console\.[a-zA-Z]+\(.*\)
This will Abort the commit in case it will find import pdb; pdb.set_trace() in *.py files and console. in *.js files
Contact
-------
If you have questions, bug reports, suggestions, etc. please create an issue on the `GitHub project page <http://github.com/paylogic/hg-commit-sanity>`_.
License
-------
This software is licensed under the `MIT license <http://en.wikipedia.org/wiki/MIT_License>`_
See LICENSE.txt
© 2013 Paylogic International.
CHANGELOG
=========
0.0.1
-----
- initial version
=========================================
.. image:: https://api.travis-ci.org/paylogic/hg-commit-sanity.png
:target: https://travis-ci.org/paylogic/hg-commit-sanity
.. image:: https://pypip.in/v/hg-commit-sanity/badge.png
:target: https://crate.io/packages/hg-commit-sanity/
.. image:: https://coveralls.io/repos/paylogic/hg-commit-sanity/badge.png?branch=master
:target: https://coveralls.io/r/paylogic/hg-commit-sanity
``hg-commit-sanity`` is a Mercurial extension that allows to easily create precommit hooks to do sanity checks on commits.
Kudos to `Matthew Schinckel <http://schinckel.net/2013/04/07/hg-commit---prevent-stupidity>`_
Installation
------------
.. sourcecode ::
pip install hg-commit-sanity
Configuration
-------------
An example of your .hgrc:
.. code-block:: cfg
[extensions]
hg_commit_sanity =
[hg_commit_sanity]
.py =
^[^#]*import pdb; pdb.set_trace\(\)
.js =
^[^(//)]*console\.[a-zA-Z]+\(.*\)
This will Abort the commit in case it will find import pdb; pdb.set_trace() in *.py files and console. in *.js files
Contact
-------
If you have questions, bug reports, suggestions, etc. please create an issue on the `GitHub project page <http://github.com/paylogic/hg-commit-sanity>`_.
License
-------
This software is licensed under the `MIT license <http://en.wikipedia.org/wiki/MIT_License>`_
See LICENSE.txt
© 2013 Paylogic International.
CHANGELOG
=========
0.0.1
-----
- initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hg-commit-sanity-0.0.1.tar.gz
.
File metadata
- Download URL: hg-commit-sanity-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636def8daf4da09921a3cd1cfb0a62b0255790030f29425d86f7c10e388545d5 |
|
MD5 | ab11373c4dbf2a30f9120e1050ee6263 |
|
BLAKE2b-256 | 1705446bf63c3ee705a4a7cce47cc8b1401ffc33b0a6ff269b7c9d13d85a50c5 |