changeset 12102:9aba4ceb654d

test-keyword: use regular expressions instead of grepping
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Mon, 30 Aug 2010 13:15:30 +0900
parents 0096f21c01dc
children 437579a0068a
files tests/test-bisect.t tests/test-churn.t tests/test-inherit-mode.t tests/test-keyword.t tests/test-remove-new.t tests/test-remove.t tests/test-rename.t tests/test-strict.t
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-keyword.t	Mon Aug 30 13:11:32 2010 +0900
+++ 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: