[PATCH 08 of 11] comments: fix minor spelling issues found with spell checker

Mads Kiilerich mads at kiilerich.com
Thu Feb 20 08:35:35 CST 2014


On 02/20/2014 12:32 PM, Simon Heimberg wrote:
> On 2014-02-20 02:43, Mads Kiilerich wrote:
>> # HG changeset patch
>> # User Mads Kiilerich <madski at unity3d.com>
>> # Date 1392860341 -3600
>> #      Thu Feb 20 02:39:01 2014 +0100
>> # Node ID a03c3f91bc52bad6796d83c9a723e64f74f8e9fa
>> # Parent  7e1fd5d7a88af2608ae0a9a5ed8b7940036ebd0f
>> comments: fix minor spelling issues found with spell checker
>>
>
> What spell checker are you using? Does it only check strings and 
> comments? I'd like one too.

https://bitbucket.org/kiilerix/mercurial-crew/src/0960ec3ab3f642acaeb24e8acad25c91676bf9f3/spellcheck0

>
>> diff --git a/mercurial/minirst.py b/mercurial/minirst.py
>> --- a/mercurial/minirst.py
>> +++ b/mercurial/minirst.py
>> @@ -109,7 +109,7 @@ def findliteralblocks(blocks):
>>               elif len(blocks[i]['lines']) == 1 and \
>>                    blocks[i]['lines'][0].lstrip(' ').startswith('.. 
>> ') and \
>>                    blocks[i]['lines'][0].find(' ', 3) == -1:
>> -                # directive on its onw line, not a literal block
>> +                # directive on its own line, not a literal block
>
> This is mine... I would like to avoid this in the feature.

The best way to do that is probably to use a smart editor with spell 
checking and fancy markup ... such as vim ":set spell".

/Mads


More information about the Mercurial-devel mailing list