Skip to main content

Hook and extension to spellcheck Mercurial commit messages

Project description

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

Project details


Download files

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

Source Distribution

hgspellcheck-1.0rc1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

hgspellcheck-1.0rc1-py2.6.egg (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page