##// END OF EJS Templates
Change sed patterns in tests to strip dates after spaces or tabs
mpm@selenic.com -
r774:6592c4f5 default
parent child Browse files
Show More
@@ -28,7 +28,8 b' writing tests:'
28
28
29 - diff will show the current time
29 - diff will show the current time
30
30
31 use hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/" to strip dates
31 use hg diff | sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/" to strip
32 dates
32
33
33 - set -x and pipelines don't generate stable output
34 - set -x and pipelines don't generate stable output
34
35
@@ -7,6 +7,6 b' hg ci -m "a" -d "0 0"'
7
7
8 echo 123 > b
8 echo 123 > b
9 hg add b
9 hg add b
10 hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
10 hg diff | sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/"
11
11
12 hg diff -r tip | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
12 hg diff -r tip | sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/"
@@ -13,7 +13,7 b' cd ../r2'
13 hg up
13 hg up
14 echo abc > a
14 echo abc > a
15 hg diff > ../d
15 hg diff > ../d
16 sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d
16 sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/" < ../d
17
17
18 cd ../r1
18 cd ../r1
19 echo b > b
19 echo b > b
@@ -29,5 +29,5 b' hg --debug up -m'
29 hg parents
29 hg parents
30 hg -v history
30 hg -v history
31 hg diff > ../d
31 hg diff > ../d
32 sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d
32 sed "s/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/" < ../d
33
33
General Comments 0
You need to be logged in to leave comments. Login now