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

timeless timeless at mozdev.org
Mon Dec 14 06:05:12 UTC 2015


# 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

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:


More information about the Mercurial-devel mailing list