tests/test-mq-qimport
changeset 7272 9105467b8167
parent 7271 8046f0a070a6
parent 7266 e7f6401584f7
child 7273 84f807918864
--- a/tests/test-mq-qimport	Mon Oct 27 21:50:16 2008 +0100
+++ b/tests/test-mq-qimport	Tue Oct 28 00:03:28 2008 +0100
@@ -33,7 +33,14 @@
 hg diff > $HGTMP/url.diff
 hg revert --no-backup foo
 rm foo
-hg qimport file://$HGTMP/url.diff
+# Under unix: file:///foobar/blah
+# Under windows: file:///c:/foobar/blah
+patchurl=`echo $HGTMP/url.diff | tr '\\' /`
+expr $patchurl : "\/" > /dev/null
+if [ $? -ne 0 ]; then
+    patchurl='/'$patchurl
+fi
+hg qimport file://$patchurl
 hg qun
 
 echo % import patch that already exists