spellcheck mercurial commit消息的钩子和扩展
hgspellcheck的Python项目详细描述
===概述==
使用hg log-k可以过滤日志并搜索关键字。如果提交消息中有很多拼写错误,则这可能会变得困难或不可能。
检查所有提交的拼写错误,并在 它们发生时,使用hgspellcheck扩展名。
使用包含的挂钩可防止添加在提交消息中存在拼写错误的变更集。
==配置==
检查所有提交的拼写错误,并在 出现这种情况时,将扩展添加到.hgrc的“扩展”部分。
{{{
[扩展名] hgspellcheck=
}}}
若要拒绝所有有拼写错误的入站提交,请添加挂钩 关于“pretxnchangegroup”。
{{{
[挂钩] #拒绝提交时出现拼写错误的所有入站变更集 #消息 pretxnchangegroup=python:hgspellcheck.hook
#如果变更集提交,则拒绝在本地存储库中创建它们 #邮件包含拼写错误;这适用于 #创建变更集(例如commit、qnew、qrecord) pretxncommit=python:hgspellcheck.hook
}}}
==链接==
- 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