[PATCH 1 of 2] test-help: tighten grep patterns

Matt Harbison mharbison72 at gmail.com
Mon Dec 14 21:15:31 CST 2015


On Mon, 14 Dec 2015 22:10:58 -0500, Matt Harbison <mharbison72 at gmail.com>  
wrote:

> On Mon, 14 Dec 2015 01:05:12 -0500, timeless <timeless at mozdev.org> wrote:
>
>> # HG changeset patch
>> # User timeless <timeless at mozdev.org>
>> # Date 1450072832 0
>> #      Mon Dec 14 06:00:32 2015 +0000
>> # Node ID ab3fdce6469850a8815205d6f328e16ea3b3dde8
>> # Parent  944af8e2eb4cddf96ba5b8a96854528b40979715
>> test-help: tighten grep patterns
>
> This one solves my original problem, thanks.
>
> Didn't you say that you meant to check 'debug' with -k?

Sorry, nevermind.  I didn't see the second patch.

>> Help should output section headings, but no debug commands
>>
>> diff --git a/tests/test-help.t b/tests/test-help.t
>> --- a/tests/test-help.t
>> +++ b/tests/test-help.t
>> @@ -1053,11 +1053,11 @@
>> Test -e / -c / -k combinations
>> -  $ hg help -c|egrep '^\S|debug'
>> +  $ hg help -c|egrep '^[A-Z].*:|^ debug'
>>    Commands:
>> -  $ hg help -e|egrep '^\S'
>> +  $ hg help -e|egrep '^[A-Z].*:|^ debug'
>>    Extensions:
>> -  $ hg help -k|egrep '^\S'
>> +  $ hg help -k|egrep '^[A-Z].*:'
>>    Topics:
>>    Commands:
>>    Extensions:
>> _______________________________________________
>> Mercurial-devel mailing list
>> Mercurial-devel at selenic.com
>> https://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list