--- a/tests/test-mq-qimport Fri Mar 26 17:02:49 2010 +0100
+++ b/tests/test-mq-qimport Wed Mar 24 01:43:24 2010 +0100
@@ -68,12 +68,12 @@
rm foo
# Under unix: file:///foobar/blah
# Under windows: file:///c:/foobar/blah
-patchurl=`echo $HGTMP/url.diff | tr '\\\\' /`
-expr $patchurl : "\/" > /dev/null
+patchurl=`echo "$HGTMP"/url.diff | tr '\\\\' /`
+expr "$patchurl" : "\/" > /dev/null
if [ $? -ne 0 ]; then
- patchurl='/'$patchurl
+ patchurl="/$patchurl"
fi
-hg qimport file://$patchurl
+hg qimport file://"$patchurl"
hg qun
echo % import patch that already exists