tests/test-mq-qimport
branchstable
changeset 10775 c52057614c72
parent 10730 4d6bd7b8b6d8
child 11699 da0b9109186d
--- 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