# HG changeset patch # User timeless # Date 2015-12-14 06:00:32 # Node ID 55ac8006880f8f430eb308c7c00775fdcde8ac9a # Parent 20e7de6205e7ef421fd4f23f00aed394afb7365e test-help: tighten grep patterns 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 @@ -1209,11 +1209,11 @@ help -c should only show deprecated for 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: