Differences between revisions 2 and 3
Revision 2 as of 2010-03-22 02:46:25
Size: 1371
Editor: IainLowe
Comment: Removed crufty categorizations
Revision 3 as of 2010-03-22 03:55:36
Size: 1598
Editor: IainLowe
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Download site: http://www.bitbucket.org/ilowe/hgspellcheck/downloads Hook and extension to spellcheck Mercurial commit messages
Line 10: Line 10:
Line 23: Line 24:
Line 25: Line 27:
Line 31: Line 34:
Line 40: Line 44:
Line 41: Line 46:

== 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

Spellcheck Extension

This extension is not distributed with Mercurial.

Author: Iain Lowe

Hook and extension to spellcheck Mercurial commit messages

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


CategoryExtension CategoryExtensionsByOthers

SpellcheckExtension (last edited 2012-11-04 02:39:17 by mpm)