changeset 774:6592c4f5cd4f

Change sed patterns in tests to strip dates after spaces or tabs
author mpm@selenic.com
date Tue, 26 Jul 2005 19:03:45 -0800
parents d77c1031fd17
children 122449dd89db
files tests/README tests/test-diffdir tests/test-up-local-change
diffstat 3 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/README	Tue Jul 26 21:52:40 2005 -0500
+++ b/tests/README	Tue Jul 26 19:03:45 2005 -0800
@@ -28,7 +28,8 @@
 
 - diff will show the current time
 
-  use hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/" to strip dates
+  use hg diff | sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/" to strip
+  dates
 
 - set -x and pipelines don't generate stable output
 
--- a/tests/test-diffdir	Tue Jul 26 21:52:40 2005 -0500
+++ b/tests/test-diffdir	Tue Jul 26 19:03:45 2005 -0800
@@ -7,6 +7,6 @@
 
 echo 123 > b
 hg add b
-hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
+hg diff | sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/"
 
-hg diff -r tip | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
+hg diff -r tip | sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/"
--- a/tests/test-up-local-change	Tue Jul 26 21:52:40 2005 -0500
+++ b/tests/test-up-local-change	Tue Jul 26 19:03:45 2005 -0800
@@ -13,7 +13,7 @@
 hg up
 echo abc > a
 hg diff > ../d
-sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d
+sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/" < ../d
 
 cd ../r1
 echo b > b
@@ -29,5 +29,5 @@
 hg parents
 hg -v history
 hg diff > ../d
-sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d
+sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/" < ../d