test-keyword: use regular expressions instead of grepping stable
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Mon, 30 Aug 2010 13:15:30 +0900
branchstable
changeset 786 5a41673d33fb
parent 784 7e69e2b40d9b
child 787 a9331f9561dd
child 788 1ae8e3a80298
test-keyword: use regular expressions instead of grepping [ original upstream message]
tests/test-keyword.t
--- a/tests/test-keyword.t	Sun Aug 15 13:26:12 2010 -0500
+++ b/tests/test-keyword.t	Mon Aug 30 13:15:30 2010 +0900
@@ -331,9 +331,10 @@
 
 Diff remaining chunk
 
-  $ hg diff | grep -v 'b/a'
+  $ hg diff
   diff -r d17e03c92c97 a
   --- a/a	Wed Dec 31 23:59:51 1969 -0000
+  \+\+\+ b/a	.*
   @@ -2,3 +2,4 @@
    foo
    do not process $Id:
@@ -474,9 +475,10 @@
 
 Diff specific revision
 
-  $ hg diff --rev 1 | grep -v 'b/c'
+  $ hg diff --rev 1
   diff -r ef63ca68695b c
   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  \+\+\+ b/c	.*
   @@ -0,0 +1,3 @@
   +expand $Id$
   +do not process $Id: