Hook and extension to spellcheck Mercurial commit messages
Project description
=== Overview ===
Using hg log -k you can filter the log and search for keywords. This can be made difficult or impossible if there are lots of spelling mistakes in commit messages.
To check all commits for spelling mistakes, and interactively edit them when they occur, use the hgspellcheck extension.
Use the included hook to prevent the addition of changesets that have spelling errors in their commit messages.
=== Configuration ===
To check all commits for spelling mistakes, and interactively edit them when they occur, add the extension to the “extensions” section of your .hgrc.
{{{
[extensions] hgspellcheck=
}}}
To reject all inbound commits that have spelling mistakes, add the hook on “pretxnchangegroup”.
{{{
[hooks] # Reject all inbound changesets with spelling errors in their commit # messages pretxnchangegroup = python:hgspellcheck.hook
# Refuse to create changesets in the local repository if their commit # messages contain spelling errors; this works for any commands that # create changesets (e.g. commit, qnew, qrecord) pretxncommit = python:hgspellcheck.hook
}}}
== Links ==
Mercurial wiki page: http://mercurial.selenic.com/wiki/SpellcheckExtension
Bitbucket site: http://www.bitbucket.org/ilowe/hgspellcheck
Python Package Index: http://pypi.python.org/pypi/hgspellcheck
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
Built Distribution
File details
Details for the file hgspellcheck-1.0rc2.tar.gz
.
File metadata
- Download URL: hgspellcheck-1.0rc2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b8c48d4099b0469297647c25c7a2c14a236cee3becd68c4193aeefed24a82a |
|
MD5 | dffc6589dadfb7e0374f72940e197857 |
|
BLAKE2b-256 | d6b2c6bd4b9001f56a708916ed7929565e2dd4ffece04c41ba43a818c3a19318 |
File details
Details for the file hgspellcheck-1.0rc2-py2.6.egg
.
File metadata
- Download URL: hgspellcheck-1.0rc2-py2.6.egg
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7881cdf6cdef816e4fb577569c2913e5cf41f05cba90d9ccbe75bea38befe302 |
|
MD5 | 1e1a30996ff8504c08c2f5a6e59eb8a0 |
|
BLAKE2b-256 | 6dd1e5c3bdd788a9493e43d94adefd24bd3d6d0572e8016d802cd189bde6e733 |