comparison tests/test-parentrevspec @ 5199:94e77a174f55

Quote ^ and ~ chars in test-parentrevspec. At least ^ causes problems on some sh implementations.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 18 Aug 2007 20:21:14 +0200
parents b111e9a907b1
children 4fe04b183fd8
comparison
equal deleted inserted replaced
5198:74650bcacc09 5199:94e77a174f55
47 47
48 tipnode=`hg id -ir tip` 48 tipnode=`hg id -ir tip`
49 49
50 echo 'should work with tag/branch/node/rev' 50 echo 'should work with tag/branch/node/rev'
51 for r in tip default $tipnode 6; do 51 for r in tip default $tipnode 6; do
52 lookup $r^ 52 lookup "$r^"
53 done 53 done
54 echo 54 echo
55 55
56 echo 'some random lookups' 56 echo 'some random lookups'
57 lookup 6^^ 6^^^ 6^^^^ 6^^^^^ 6^^^^^^ 6^1 6^2 6^^2 6^1^2 6^^3 57 lookup "6^^" "6^^^" "6^^^^" "6^^^^^" "6^^^^^^" "6^1" "6^2" "6^^2" "6^1^2" "6^^3"
58 lookup 6~ 6~1 6~2 6~3 6~4 6~5 6~42 6~1^2 6~1^2~2 58 lookup "6~" "6~1" "6~2" "6~3" "6~4" "6~5" "6~42" "6~1^2" "6~1^2~2"
59 echo 59 echo
60 60
61 echo 'with a tag "6^" pointing to rev 1' 61 echo 'with a tag "6^" pointing to rev 1'
62 hg tag -l -r 1 6^ 62 hg tag -l -r 1 6^
63 lookup 6^ 6^1 6~1 6^^ 63 lookup "6^" "6^1" "6~1" "6^^"
64 echo 64 echo
65 65
66 echo 'with a tag "foo^bar" pointing to rev 2' 66 echo 'with a tag "foo^bar" pointing to rev 2'
67 hg tag -l -r 2 foo^bar 67 hg tag -l -r 2 "foo^bar"
68 lookup foo^bar foo^bar^ 68 lookup "foo^bar" "foo^bar^"
69 69