tests: use "hg help revisions.<predicate>" instead of grepping
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 12 Jan 2017 11:43:26 -0800
changeset 30786 e2a6f383d314
parent 30785 301512fd6852
child 30787 ff020ee5f06c
tests: use "hg help revisions.<predicate>" instead of grepping We have specific syntax for displaying the help text for a particular revset predicate, so use that instead of grepping through the full output.
tests/test-mq.t
tests/test-transplant.t
--- a/tests/test-mq.t	Thu Jan 12 11:52:05 2017 -0800
+++ b/tests/test-mq.t	Thu Jan 12 11:43:26 2017 -0800
@@ -888,9 +888,10 @@
   $ hg log -r 'mq()' --template '{rev}\n'
   1
   2
-  $ hg help revsets | grep -i mq
+  $ hg help revisions.mq
       "mq()"
         Changesets managed by MQ.
+  
 
 bad node in status
 
--- a/tests/test-transplant.t	Thu Jan 12 11:52:05 2017 -0800
+++ b/tests/test-transplant.t	Thu Jan 12 11:43:26 2017 -0800
@@ -102,9 +102,10 @@
   7  b3
   $ hg log -r 'transplanted(head())' --template '{rev} {parents} {desc}\n'
   7  b3
-  $ hg help revsets | grep transplanted
+  $ hg help revisions.transplanted
       "transplanted([set])"
         Transplanted changesets in set, or all transplanted changesets.
+  
 
 test transplanted keyword