tests/test-mq-qimport
changeset 7273 84f807918864
parent 7272 9105467b8167
child 7421 4c4324476be6
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