changeset 30786:e2a6f383d314

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Jan 2017 11:43:26 -0800
parents 301512fd6852
children ff020ee5f06c
files tests/test-mq.t tests/test-transplant.t
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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