⇤ ← Revision 1 as of 2010-03-22 02:45:23
Size: 1434
Comment:
|
Size: 1371
Comment: Removed crufty categorizations
|
Deletions are marked like this. | Additions are marked like this. |
Line 43: | Line 43: |
CategoryExtension CategoryExtensionsByOthers CategoryExtension CategoryExtension CategoryExtensionsByOthers | CategoryExtension CategoryExtensionsByOthers |
Spellcheck Extension
This extension is not distributed with Mercurial.
Author: Iain Lowe
Download site: http://www.bitbucket.org/ilowe/hgspellcheck/downloads
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