# HG changeset patch # User Benoit Boissinot # Date 2008-10-28 07:18:11 # Node ID 84f807918864bee63c3b27728ce211db920c06ed # Parent 9105467b81671bc2efe4faaf32d429830e5750e3 '\' should be escaped twice, for the shell, and for tr diff --git a/tests/test-mq-qimport b/tests/test-mq-qimport --- a/tests/test-mq-qimport +++ b/tests/test-mq-qimport @@ -35,7 +35,7 @@ hg revert --no-backup foo rm foo # Under unix: file:///foobar/blah # Under windows: file:///c:/foobar/blah -patchurl=`echo $HGTMP/url.diff | tr '\\' /` +patchurl=`echo $HGTMP/url.diff | tr '\\\\' /` expr $patchurl : "\/" > /dev/null if [ $? -ne 0 ]; then patchurl='/'$patchurl