tests/test-up-local-change
changeset 953 52d8d81e72ad
parent 814 0902ffece4b4
parent 949 d997148155f2
child 981 4f81068ed8cd
--- a/tests/test-up-local-change	Fri Aug 19 16:43:30 2005 -0800
+++ b/tests/test-up-local-change	Fri Aug 19 16:45:25 2005 -0800
@@ -12,8 +12,8 @@
 cd ../r2
 hg up
 echo abc > a
-hg diff > ../d
-sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" < ../d
+hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
+              -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
 
 cd ../r1
 echo b > b
@@ -28,6 +28,6 @@
 hg --debug up -m
 hg parents
 hg -v history
-hg diff > ../d
-sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" < ../d
+hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
+              -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"