comparison tests/test-keyword @ 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 19c3fefdaec9
children 75101b1e6302
comparison
equal deleted inserted replaced
10772:1e819576e926 10775:c52057614c72
85 echo 85 echo
86 echo % diff a hooktest 86 echo % diff a hooktest
87 diff a hooktest 87 diff a hooktest
88 88
89 echo % removing commit hook from config 89 echo % removing commit hook from config
90 sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook 90 sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nohook
91 mv $HGRCPATH.nohook $HGRCPATH 91 mv "$HGRCPATH".nohook "$HGRCPATH"
92 rm hooktest 92 rm hooktest
93 93
94 echo % bundle 94 echo % bundle
95 hg bundle --base null ../kw.hg 95 hg bundle --base null ../kw.hg
96 96
113 113
114 echo % pull from bundle 114 echo % pull from bundle
115 hg pull -u ../kw.hg 2>&1 | sed -e '/^Content-Type:/,/^diffs (/ d' 115 hg pull -u ../kw.hg 2>&1 | sed -e '/^Content-Type:/,/^diffs (/ d'
116 116
117 echo % remove notify config 117 echo % remove notify config
118 sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nonotify 118 sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nonotify
119 mv $HGRCPATH.nonotify $HGRCPATH 119 mv "$HGRCPATH".nonotify "$HGRCPATH"
120 120
121 echo % touch 121 echo % touch
122 touch a b 122 touch a b
123 echo % status 123 echo % status
124 hg status 124 hg status
362 echo % cat 362 echo % cat
363 cat a b 363 cat a b
364 echo % hg cat 364 echo % hg cat
365 hg cat sym a b 365 hg cat sym a b
366 echo 366 echo
367 rm $HGRCPATH 367 rm "$HGRCPATH"
368 echo % cat 368 echo % cat
369 cat a b 369 cat a b
370 echo % hg cat 370 echo % hg cat
371 hg cat sym a b 371 hg cat sym a b
372 echo 372 echo