comparison tests/test-mq-qimport @ 7273:84f807918864

'\' should be escaped twice, for the shell, and for tr
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 28 Oct 2008 08:18:11 +0100
parents 9105467b8167
children 4c4324476be6
comparison
equal deleted inserted replaced
7272:9105467b8167 7273:84f807918864
33 hg diff > $HGTMP/url.diff 33 hg diff > $HGTMP/url.diff
34 hg revert --no-backup foo 34 hg revert --no-backup foo
35 rm foo 35 rm foo
36 # Under unix: file:///foobar/blah 36 # Under unix: file:///foobar/blah
37 # Under windows: file:///c:/foobar/blah 37 # Under windows: file:///c:/foobar/blah
38 patchurl=`echo $HGTMP/url.diff | tr '\\' /` 38 patchurl=`echo $HGTMP/url.diff | tr '\\\\' /`
39 expr $patchurl : "\/" > /dev/null 39 expr $patchurl : "\/" > /dev/null
40 if [ $? -ne 0 ]; then 40 if [ $? -ne 0 ]; then
41 patchurl='/'$patchurl 41 patchurl='/'$patchurl
42 fi 42 fi
43 hg qimport file://$patchurl 43 hg qimport file://$patchurl