Mercurial > hg
comparison tests/test-mq-qimport @ 10775:c52057614c72 stable
Tests with spaces in paths
This allows most tests to succeed with
./run-tests.py --tmpdir='/tmp/hg test'
and introduces other tests for spaces and shell quoting
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 24 Mar 2010 01:43:24 +0100 |
parents | 4d6bd7b8b6d8 |
children | da0b9109186d |
comparison
equal
deleted
inserted
replaced
10772:1e819576e926 | 10775:c52057614c72 |
---|---|
66 hg diff > $HGTMP/url.diff | 66 hg diff > $HGTMP/url.diff |
67 hg revert --no-backup foo | 67 hg revert --no-backup foo |
68 rm foo | 68 rm foo |
69 # Under unix: file:///foobar/blah | 69 # Under unix: file:///foobar/blah |
70 # Under windows: file:///c:/foobar/blah | 70 # Under windows: file:///c:/foobar/blah |
71 patchurl=`echo $HGTMP/url.diff | tr '\\\\' /` | 71 patchurl=`echo "$HGTMP"/url.diff | tr '\\\\' /` |
72 expr $patchurl : "\/" > /dev/null | 72 expr "$patchurl" : "\/" > /dev/null |
73 if [ $? -ne 0 ]; then | 73 if [ $? -ne 0 ]; then |
74 patchurl='/'$patchurl | 74 patchurl="/$patchurl" |
75 fi | 75 fi |
76 hg qimport file://$patchurl | 76 hg qimport file://"$patchurl" |
77 hg qun | 77 hg qun |
78 | 78 |
79 echo % import patch that already exists | 79 echo % import patch that already exists |
80 echo foo2 >> foo | 80 echo foo2 >> foo |
81 hg add foo | 81 hg add foo |