--- 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/"