##// END OF EJS Templates
tests: make tests work if directory contains special characters...
Thomas Arendsen Hein -
r16350:4f795f5f stable
parent child Browse files
Show More
@@ -18,7 +18,7 b' files'
18 18
19 19 $ cd "$origdir"
20 20 $ cd archive
21 $ $TESTDIR/readlink.py dangling
21 $ "$TESTDIR/readlink.py" dangling
22 22 dangling -> nothing
23 23
24 24 tar
@@ -26,7 +26,7 b' tar'
26 26 $ cd "$origdir"
27 27 $ tar xf archive.tar
28 28 $ cd tar
29 $ $TESTDIR/readlink.py dangling
29 $ "$TESTDIR/readlink.py" dangling
30 30 dangling -> nothing
31 31
32 32 zip
@@ -34,5 +34,5 b' zip'
34 34 $ cd "$origdir"
35 35 $ unzip archive.zip > /dev/null
36 36 $ cd zip
37 $ $TESTDIR/readlink.py dangling
37 $ "$TESTDIR/readlink.py" dangling
38 38 dangling -> nothing
@@ -221,7 +221,7 b' enable progress extension:'
221 221 > width = 60
222 222 > EOF
223 223
224 $ hg archive ../with-progress 2>&1 | $TESTDIR/filtercr.py
224 $ hg archive ../with-progress 2>&1 | "$TESTDIR/filtercr.py"
225 225
226 226 archiving [ ] 0/4
227 227 archiving [ ] 0/4
@@ -35,7 +35,7 b' unbundle tampered bundle'
35 35
36 36 $ hg init target
37 37 $ cd target
38 $ hg unbundle $TESTDIR/bundles/tampered.hg
38 $ hg unbundle "$TESTDIR/bundles/tampered.hg"
39 39 adding changesets
40 40 adding manifests
41 41 adding file changes
@@ -1,6 +1,6 b''
1 1 $ hg init test
2 2 $ cd test
3 $ hg unbundle $TESTDIR/bundles/remote.hg
3 $ hg unbundle "$TESTDIR/bundles/remote.hg"
4 4 adding changesets
5 5 adding manifests
6 6 adding file changes
@@ -1,6 +1,6 b''
1 1 $ "$TESTDIR/hghave" pyflakes || exit 80
2 $ cd `dirname $TESTDIR`
3 $ pyflakes mercurial hgext 2>&1 | $TESTDIR/filterpyflakes.py
2 $ cd "`dirname "$TESTDIR"`"
3 $ pyflakes mercurial hgext 2>&1 | "$TESTDIR/filterpyflakes.py"
4 4 hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)
5 5
6 6
@@ -1,6 +1,6 b''
1 1 Set vars:
2 2
3 $ CONTRIBDIR=$TESTDIR/../contrib
3 $ CONTRIBDIR="$TESTDIR/../contrib"
4 4
5 5 Prepare repo-a:
6 6
@@ -26,7 +26,7 b' Prepare repo-a:'
26 26
27 27 Dumping revlog of file a to stdout:
28 28
29 $ python $CONTRIBDIR/dumprevlog .hg/store/data/a.i
29 $ python "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i
30 30 file: .hg/store/data/a.i
31 31 node: 183d2312b35066fb6b3b449b84efc370d50993d0
32 32 linkrev: 0
@@ -58,14 +58,14 b' Dumping revlog of file a to stdout:'
58 58
59 59 Dump all revlogs to file repo.dump:
60 60
61 $ find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
61 $ find .hg/store -name "*.i" | sort | xargs python "$CONTRIBDIR/dumprevlog" > ../repo.dump
62 62 $ cd ..
63 63
64 64 Undumping into repo-b:
65 65
66 66 $ hg init repo-b
67 67 $ cd repo-b
68 $ python $CONTRIBDIR/undumprevlog < ../repo.dump
68 $ python "$CONTRIBDIR/undumprevlog" < ../repo.dump
69 69 .hg/store/00changelog.i
70 70 .hg/store/00manifest.i
71 71 .hg/store/data/a.i
@@ -106,7 +106,7 b' Compare repos:'
106 106
107 107 Test shrink-revlog:
108 108 $ cd repo-a
109 $ hg --config extensions.shrink=$CONTRIBDIR/shrink-revlog.py shrink
109 $ hg --config extensions.shrink="$CONTRIBDIR/shrink-revlog.py" shrink
110 110 shrinking $TESTTMP/repo-a/.hg/store/00manifest.i (glob)
111 111 reading revs
112 112 sorting revs
@@ -101,7 +101,7 b' return to trunk and merge MYBRANCH1_2'
101 101 Merging differences between 1.1 and 1.1.2.2.2.1 into foo.txt
102 102 $ cvsci -m "merge2" foo.txt
103 103 $ REALCVS=`which cvs`
104 $ echo "for x in \$*; do if [ \"\$x\" = \"rlog\" ]; then echo \"RCS file: $CVSROOT/foo/foo.txt,v\"; cat $TESTDIR/test-convert-cvsnt-mergepoints.rlog; exit 0; fi; done; $REALCVS \$*" > ../cvs
104 $ echo "for x in \$*; do if [ \"\$x\" = \"rlog\" ]; then echo \"RCS file: $CVSROOT/foo/foo.txt,v\"; cat \"$TESTDIR/test-convert-cvsnt-mergepoints.rlog\"; exit 0; fi; done; $REALCVS \$*" > ../cvs
105 105 $ chmod +x ../cvs
106 106 $ PATH=..:${PATH} hg debugcvsps --parents foo
107 107 collecting CVS rlog
@@ -173,7 +173,7 b" Test convert progress bar'"
173 173 > width = 60
174 174 > EOF
175 175
176 $ hg convert svn-repo hg-progress 2>&1 | $TESTDIR/filtercr.py
176 $ hg convert svn-repo hg-progress 2>&1 | "$TESTDIR/filtercr.py"
177 177
178 178 scanning [ <=> ] 1
179 179 scanning [ <=> ] 2
@@ -78,13 +78,13 b' this should show the rename information '
78 78 copy: a
79 79 copyrev: b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
80 80
81 $ $TESTDIR/md5sum.py .hg/store/data/b.i
81 $ "$TESTDIR/md5sum.py" .hg/store/data/b.i
82 82 4999f120a3b88713bbefddd195cf5133 .hg/store/data/b.i
83 83 $ hg cat b > bsum
84 $ $TESTDIR/md5sum.py bsum
84 $ "$TESTDIR/md5sum.py" bsum
85 85 60b725f10c9c85c70d97880dfe8191b3 bsum
86 86 $ hg cat a > asum
87 $ $TESTDIR/md5sum.py asum
87 $ "$TESTDIR/md5sum.py" asum
88 88 60b725f10c9c85c70d97880dfe8191b3 asum
89 89 $ hg verify
90 90 checking changesets
@@ -8,7 +8,7 b' plain'
8 8 > --config extensions.progress= --config progress.assume-tty=1 \
9 9 > --config progress.delay=0 --config progress.refresh=0 \
10 10 > --config progress.width=60 2>&1 | \
11 > python $TESTDIR/filtercr.py
11 > python "$TESTDIR/filtercr.py"
12 12
13 13 building [ ] 0/12
14 14 building [ ] 0/12
@@ -1,6 +1,6 b''
1 1 $ hg init a
2 2 $ cd a
3 $ cp $TESTDIR/binfile.bin .
3 $ cp "$TESTDIR/binfile.bin" .
4 4 $ hg add binfile.bin
5 5 $ hg ci -m 'add binfile.bin'
6 6
@@ -5,7 +5,7 b' Test character encoding'
5 5
6 6 we need a repo with some legacy latin-1 changesets
7 7
8 $ hg unbundle $TESTDIR/bundles/legacy-encoding.hg
8 $ hg unbundle "$TESTDIR/bundles/legacy-encoding.hg"
9 9 adding changesets
10 10 adding manifests
11 11 adding file changes
@@ -3,18 +3,18 b' Test document extraction'
3 3 $ "$TESTDIR/hghave" docutils || exit 80
4 4 $ HGENCODING=UTF-8
5 5 $ export HGENCODING
6 $ for PO in C $TESTDIR/../i18n/*.po; do
7 > LOCALE=`basename $PO .po`
6 $ { echo C; find "$TESTDIR/../i18n" -name "*.po" | sort; } | while read PO; do
7 > LOCALE=`basename "$PO" .po`
8 8 > echo
9 9 > echo "% extracting documentation from $LOCALE"
10 10 > echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt
11 11 > echo "" >> gendoc-$LOCALE.txt
12 > LC_ALL=$LOCALE python $TESTDIR/../doc/gendoc.py >> gendoc-$LOCALE.txt 2> /dev/null || exit
12 > LC_ALL=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
13 13 >
14 14 > # We call runrst without adding "--halt warning" to make it report
15 15 > # all errors instead of stopping on the first one.
16 16 > echo "checking for parse errors"
17 > python $TESTDIR/../doc/runrst html gendoc-$LOCALE.txt /dev/null
17 > python "$TESTDIR/../doc/runrst" html gendoc-$LOCALE.txt /dev/null
18 18 > done
19 19
20 20 % extracting documentation from C
@@ -96,7 +96,7 b' Nonexistent in tip+chmod:'
96 96
97 97 Binary diff:
98 98
99 $ cp $TESTDIR/binfile.bin .
99 $ cp "$TESTDIR/binfile.bin" .
100 100 $ hg add binfile.bin
101 101 $ hg diff --git > b.diff
102 102 $ cat b.diff
@@ -125,7 +125,7 b' Import binary diff:'
125 125 $ rm binfile.bin
126 126 $ hg import -mfoo b.diff
127 127 applying b.diff
128 $ cmp binfile.bin $TESTDIR/binfile.bin
128 $ cmp binfile.bin "$TESTDIR/binfile.bin"
129 129
130 130 Rename binary file:
131 131
@@ -6,7 +6,7 b' Test the GPG extension'
6 6 > gpg=
7 7 >
8 8 > [gpg]
9 > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb --homedir $TESTDIR/gpg
9 > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb --homedir "$TESTDIR/gpg"
10 10 > EOF
11 11 $ hg init r
12 12 $ cd r
@@ -165,7 +165,7 b' of just using revision numbers.'
165 165
166 166 $ hg init a
167 167 $ cd a
168 $ cp $TESTDIR/binfile.bin .
168 $ cp "$TESTDIR/binfile.bin" .
169 169 $ hg add binfile.bin
170 170 $ hg ci -m 'add binfile.bin'
171 171 $ hg grep "MaCam" --all
@@ -4,7 +4,7 b" creating 'remote"
4 4
5 5 $ hg init remote
6 6 $ cd remote
7 $ hg unbundle $TESTDIR/bundles/remote.hg
7 $ hg unbundle "$TESTDIR/bundles/remote.hg"
8 8 adding changesets
9 9 adding manifests
10 10 adding file changes
@@ -61,7 +61,7 b' test failure'
61 61
62 62 init+push to remote2
63 63
64 $ hg init -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote2
64 $ hg init -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote2
65 65 $ hg incoming -R remote2 local
66 66 comparing with local
67 67 changeset: 0:08b9e9f63b32
@@ -71,7 +71,7 b' init+push to remote2'
71 71 summary: init
72 72
73 73
74 $ hg push -R local -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote2
74 $ hg push -R local -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote2
75 75 pushing to ssh://user@dummy/remote2
76 76 searching for changes
77 77 remote: adding changesets
@@ -81,7 +81,7 b' init+push to remote2'
81 81
82 82 clone to remote1
83 83
84 $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote1
84 $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote1
85 85 searching for changes
86 86 remote: adding changesets
87 87 remote: adding manifests
@@ -90,14 +90,14 b' clone to remote1'
90 90
91 91 init to existing repo
92 92
93 $ hg init -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote1
93 $ hg init -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote1
94 94 abort: repository remote1 already exists!
95 95 abort: could not create remote repo!
96 96 [255]
97 97
98 98 clone to existing repo
99 99
100 $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote1
100 $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote1
101 101 abort: repository remote1 already exists!
102 102 abort: could not create remote repo!
103 103 [255]
@@ -186,7 +186,7 b' clone bookmarks'
186 186 $ hg -R local bookmark test
187 187 $ hg -R local bookmarks
188 188 * test 0:08b9e9f63b32
189 $ hg clone -e "python $TESTDIR/dummyssh" local ssh://user@dummy/remote-bookmarks
189 $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote-bookmarks
190 190 searching for changes
191 191 remote: adding changesets
192 192 remote: adding manifests
@@ -907,14 +907,14 b' hg serve'
907 907
908 908 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
909 909 $ cat hg.pid >> $DAEMON_PIDS
910 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/file/tip/a/?style=raw'
910 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/a/?style=raw'
911 911 200 Script output follows
912 912
913 913 expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
914 914 do not process $Id:
915 915 xxx $
916 916 $Xinfo: User Name <user@example.com>: firstline $
917 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/annotate/tip/a/?style=raw'
917 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/a/?style=raw'
918 918 200 Script output follows
919 919
920 920
@@ -926,7 +926,7 b' hg serve'
926 926
927 927
928 928
929 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/rev/tip/?style=raw'
929 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw'
930 930 200 Script output follows
931 931
932 932
@@ -946,7 +946,7 b' hg serve'
946 946 +xxx $
947 947 +$Xinfo$
948 948
949 $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/diff/bb948857c743/a?style=raw'
949 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw'
950 950 200 Script output follows
951 951
952 952
@@ -843,7 +843,7 b' used all HGPORTs, kill all daemons'
843 843 $ "$TESTDIR/killdaemons.py"
844 844
845 845 vanilla clients locked out from largefiles ssh repos
846 $ hg --config extensions.largefiles=! clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/r4 r5
846 $ hg --config extensions.largefiles=! clone -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/r4 r5
847 847 abort: remote error:
848 848
849 849 This repository uses the largefiles extension.
@@ -11,7 +11,7 b''
11 11 $ echo ccc > c
12 12 $ hg add a b c
13 13 $ hg qrefresh
14 $ $TESTDIR/readlink.py a
14 $ "$TESTDIR/readlink.py" a
15 15 a -> a not a symlink
16 16
17 17
@@ -21,7 +21,7 b' test replacing a file with a symlink'
21 21 $ rm a
22 22 $ ln -s b a
23 23 $ hg qrefresh --git
24 $ $TESTDIR/readlink.py a
24 $ "$TESTDIR/readlink.py" a
25 25 a -> b
26 26
27 27 $ hg qpop
@@ -30,7 +30,7 b' test replacing a file with a symlink'
30 30 $ hg qpush
31 31 applying symlink.patch
32 32 now at: symlink.patch
33 $ $TESTDIR/readlink.py a
33 $ "$TESTDIR/readlink.py" a
34 34 a -> b
35 35
36 36
@@ -39,7 +39,7 b' test updating a symlink'
39 39 $ rm a
40 40 $ ln -s c a
41 41 $ hg qnew --git -f updatelink
42 $ $TESTDIR/readlink.py a
42 $ "$TESTDIR/readlink.py" a
43 43 a -> c
44 44 $ hg qpop
45 45 popping updatelink
@@ -49,7 +49,7 b' test updating a symlink'
49 49 patching file a
50 50 a
51 51 now at: updatelink
52 $ $TESTDIR/readlink.py a
52 $ "$TESTDIR/readlink.py" a
53 53 a -> c
54 54 $ hg st
55 55
@@ -104,5 +104,5 b' replace broken symlink with another brok'
104 104 $ hg qpush
105 105 applying movelink
106 106 now at: movelink
107 $ $TESTDIR/readlink.py linkb
107 $ "$TESTDIR/readlink.py" linkb
108 108 linkb -> linkb
@@ -154,7 +154,7 b''
154 154 > --config extensions.progress= --config progress.assume-tty=1 \
155 155 > --config progress.delay=0 --config progress.refresh=0 \
156 156 > --config progress.width=60 2>&1 | \
157 > python $TESTDIR/filtercr.py
157 > python "$TESTDIR/filtercr.py"
158 158 This patch series consists of 2 patches.
159 159
160 160
@@ -46,14 +46,14 b''
46 46
47 47 test default params, display nothing because of delay
48 48
49 $ hg -y loop 3 2>&1 | $TESTDIR/filtercr.py
49 $ hg -y loop 3 2>&1 | "$TESTDIR/filtercr.py"
50 50
51 51 $ echo "delay=0" >> $HGRCPATH
52 52 $ echo "refresh=0" >> $HGRCPATH
53 53
54 54 test with delay=0, refresh=0
55 55
56 $ hg -y loop 3 2>&1 | $TESTDIR/filtercr.py
56 $ hg -y loop 3 2>&1 | "$TESTDIR/filtercr.py"
57 57
58 58 loop [ ] 0/3
59 59 loop [===============> ] 1/3
@@ -64,7 +64,7 b' test with delay=0, refresh=0'
64 64 test nested short-lived topics (which shouldn't display with nestdelay):
65 65
66 66 $ hg -y loop 3 --nested 2>&1 | \
67 > python $TESTDIR/filtercr.py
67 > python "$TESTDIR/filtercr.py"
68 68
69 69 loop [ ] 0/3
70 70 loop [===============> ] 1/3
@@ -73,7 +73,7 b' test nested short-lived topics (which sh'
73 73
74 74
75 75 $ hg --config progress.changedelay=0 -y loop 3 --nested 2>&1 | \
76 > python $TESTDIR/filtercr.py
76 > python "$TESTDIR/filtercr.py"
77 77
78 78 loop [ ] 0/3
79 79 nested [ ] 0/2
@@ -90,7 +90,7 b' test nested short-lived topics (which sh'
90 90 test two topics being printed in parallel (as when we're doing a local
91 91 --pull clone, where you get the unbundle and bundle progress at the
92 92 same time):
93 $ hg loop 3 --parallel 2>&1 | python $TESTDIR/filtercr.py
93 $ hg loop 3 --parallel 2>&1 | python "$TESTDIR/filtercr.py"
94 94
95 95 loop [ ] 0/3
96 96 loop [===============> ] 1/3
@@ -98,13 +98,13 b' same time):'
98 98 \r (esc)
99 99 test refresh is taken in account
100 100
101 $ hg -y --config progress.refresh=100 loop 3 2>&1 | $TESTDIR/filtercr.py
101 $ hg -y --config progress.refresh=100 loop 3 2>&1 | "$TESTDIR/filtercr.py"
102 102
103 103
104 104 test format options 1
105 105
106 106 $ hg -y --config 'progress.format=number topic item+2' loop 2 2>&1 \
107 > | $TESTDIR/filtercr.py
107 > | "$TESTDIR/filtercr.py"
108 108
109 109 0/2 loop lo
110 110 1/2 loop lo
@@ -113,7 +113,7 b' test format options 1'
113 113 test format options 2
114 114
115 115 $ hg -y --config 'progress.format=number item-3 bar' loop 2 2>&1 \
116 > | $TESTDIR/filtercr.py
116 > | "$TESTDIR/filtercr.py"
117 117
118 118 0/2 p.0 [ ]
119 119 1/2 p.1 [=======================> ]
@@ -122,7 +122,7 b' test format options 2'
122 122 test format options and indeterminate progress
123 123
124 124 $ hg -y --config 'progress.format=number item bar' loop -- -2 2>&1 \
125 > | $TESTDIR/filtercr.py
125 > | "$TESTDIR/filtercr.py"
126 126
127 127 0 loop.0 [ <=> ]
128 128 1 loop.1 [ <=> ]
@@ -130,7 +130,7 b' test format options and indeterminate pr'
130 130
131 131 make sure things don't fall over if count > total
132 132
133 $ hg -y loop --total 4 6 2>&1 | $TESTDIR/filtercr.py
133 $ hg -y loop --total 4 6 2>&1 | "$TESTDIR/filtercr.py"
134 134
135 135 loop [ ] 0/4
136 136 loop [===========> ] 1/4
@@ -142,7 +142,7 b" make sure things don't fall over if coun"
142 142
143 143 test immediate progress completion
144 144
145 $ hg -y loop 0 2>&1 | $TESTDIR/filtercr.py
145 $ hg -y loop 0 2>&1 | "$TESTDIR/filtercr.py"
146 146
147 147
148 148 test delay time estimates
@@ -173,7 +173,7 b' test delay time estimates'
173 173 $ echo "delay=25" >> $HGRCPATH
174 174 $ echo "width=60" >> $HGRCPATH
175 175
176 $ hg -y loop 8 2>&1 | python $TESTDIR/filtercr.py
176 $ hg -y loop 8 2>&1 | python "$TESTDIR/filtercr.py"
177 177
178 178 loop [=========> ] 2/8 1m07s
179 179 loop [===============> ] 3/8 56s
@@ -183,7 +183,7 b' test delay time estimates'
183 183 loop [=====================================> ] 7/8 12s
184 184 \r (esc)
185 185
186 $ MOCKTIME=10000 hg -y loop 4 2>&1 | python $TESTDIR/filtercr.py
186 $ MOCKTIME=10000 hg -y loop 4 2>&1 | python "$TESTDIR/filtercr.py"
187 187
188 188 loop [ ] 0/4
189 189 loop [=========> ] 1/4 8h21m
@@ -191,7 +191,7 b' test delay time estimates'
191 191 loop [==============================> ] 3/4 2h47m
192 192 \r (esc)
193 193
194 $ MOCKTIME=1000000 hg -y loop 4 2>&1 | python $TESTDIR/filtercr.py
194 $ MOCKTIME=1000000 hg -y loop 4 2>&1 | python "$TESTDIR/filtercr.py"
195 195
196 196 loop [ ] 0/4
197 197 loop [=========> ] 1/4 5w00d
@@ -200,7 +200,7 b' test delay time estimates'
200 200 \r (esc)
201 201
202 202
203 $ MOCKTIME=14000000 hg -y loop 4 2>&1 | python $TESTDIR/filtercr.py
203 $ MOCKTIME=14000000 hg -y loop 4 2>&1 | python "$TESTDIR/filtercr.py"
204 204
205 205 loop [ ] 0/4
206 206 loop [=========> ] 1/4 1y18w
@@ -209,7 +209,7 b' test delay time estimates'
209 209 \r (esc)
210 210
211 211 Time estimates should not fail when there's no end point:
212 $ hg -y loop -- -4 2>&1 | python $TESTDIR/filtercr.py
212 $ hg -y loop -- -4 2>&1 | python "$TESTDIR/filtercr.py"
213 213
214 214 loop [ <=> ] 2
215 215 loop [ <=> ] 3
@@ -1,6 +1,6 b''
1 1 $ hg init test
2 2 $ cd test
3 $ hg unbundle $TESTDIR/bundles/remote.hg
3 $ hg unbundle "$TESTDIR/bundles/remote.hg"
4 4 adding changesets
5 5 adding manifests
6 6 adding file changes
@@ -15,7 +15,7 b' Create repo a:'
15 15
16 16 $ hg init a
17 17 $ cd a
18 $ hg unbundle $TESTDIR/bundles/rebase.hg
18 $ hg unbundle "$TESTDIR/bundles/rebase.hg"
19 19 adding changesets
20 20 adding manifests
21 21 adding file changes
@@ -13,7 +13,7 b''
13 13
14 14 $ hg init a
15 15 $ cd a
16 $ hg unbundle $TESTDIR/bundles/rebase.hg
16 $ hg unbundle "$TESTDIR/bundles/rebase.hg"
17 17 adding changesets
18 18 adding manifests
19 19 adding file changes
@@ -12,7 +12,7 b''
12 12
13 13 $ hg init a
14 14 $ cd a
15 $ hg unbundle $TESTDIR/bundles/rebase.hg
15 $ hg unbundle "$TESTDIR/bundles/rebase.hg"
16 16 adding changesets
17 17 adding manifests
18 18 adding file changes
@@ -13,7 +13,7 b''
13 13
14 14 $ hg init a
15 15 $ cd a
16 $ hg unbundle $TESTDIR/bundles/rebase.hg
16 $ hg unbundle "$TESTDIR/bundles/rebase.hg"
17 17 adding changesets
18 18 adding manifests
19 19 adding file changes
@@ -13,7 +13,7 b''
13 13
14 14 $ hg init a
15 15 $ cd a
16 $ hg unbundle $TESTDIR/bundles/rebase.hg
16 $ hg unbundle "$TESTDIR/bundles/rebase.hg"
17 17 adding changesets
18 18 adding manifests
19 19 adding file changes
@@ -317,7 +317,7 b' All destination are B'
317 317
318 318 $ hg init ah
319 319 $ cd ah
320 $ hg unbundle $TESTDIR/bundles/rebase-revset.hg
320 $ hg unbundle "$TESTDIR/bundles/rebase-revset.hg"
321 321 adding changesets
322 322 adding manifests
323 323 adding file changes
@@ -25,15 +25,15 b' create source repository'
25 25 $ hg ci -Am addfile
26 26 adding a
27 27 adding b
28 $ cat $TESTDIR/binfile.bin >> a
29 $ cat $TESTDIR/binfile.bin >> b
28 $ cat "$TESTDIR/binfile.bin" >> a
29 $ cat "$TESTDIR/binfile.bin" >> b
30 30 $ hg ci -Am changefiles
31 31
32 32 make another commit to create files larger than 1 KB to test
33 33 formatting of final byte count
34 34
35 $ cat $TESTDIR/binfile.bin >> a
36 $ cat $TESTDIR/binfile.bin >> b
35 $ cat "$TESTDIR/binfile.bin" >> a
36 $ cat "$TESTDIR/binfile.bin" >> b
37 37 $ hg ci -m anotherchange
38 38
39 39 don't sit forever trying to double-lock the source repo
@@ -4,7 +4,7 b" creating 'remote' repo"
4 4
5 5 $ hg init remote
6 6 $ cd remote
7 $ hg unbundle $TESTDIR/bundles/remote.hg
7 $ hg unbundle "$TESTDIR/bundles/remote.hg"
8 8 adding changesets
9 9 adding manifests
10 10 adding file changes
@@ -17,7 +17,7 b" creating 'remote' repo"
17 17 clone remote via stream
18 18
19 19 $ for i in 0 1 2 3 4 5 6 7 8; do
20 > hg clone -e "python $TESTDIR/dummyssh" --uncompressed -r "$i" ssh://user@dummy/remote test-"$i"
20 > hg clone -e 'python "$TESTDIR/dummyssh"' --uncompressed -r "$i" ssh://user@dummy/remote test-"$i"
21 21 > if cd test-"$i"; then
22 22 > hg verify
23 23 > cd ..
@@ -139,7 +139,7 b' clone remote via stream'
139 139 4 files, 9 changesets, 7 total revisions
140 140 $ cd ..
141 141 $ cd test-1
142 $ hg pull -e "python $TESTDIR/dummyssh" -r 4 ssh://user@dummy/remote
142 $ hg pull -e 'python "$TESTDIR/dummyssh"' -r 4 ssh://user@dummy/remote
143 143 pulling from ssh://user@dummy/remote
144 144 searching for changes
145 145 adding changesets
@@ -153,7 +153,7 b' clone remote via stream'
153 153 crosschecking files in changesets and manifests
154 154 checking files
155 155 1 files, 3 changesets, 2 total revisions
156 $ hg pull -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote
156 $ hg pull -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote
157 157 pulling from ssh://user@dummy/remote
158 158 searching for changes
159 159 adding changesets
@@ -163,7 +163,7 b' clone remote via stream'
163 163 (run 'hg update' to get a working copy)
164 164 $ cd ..
165 165 $ cd test-2
166 $ hg pull -e "python $TESTDIR/dummyssh" -r 5 ssh://user@dummy/remote
166 $ hg pull -e 'python "$TESTDIR/dummyssh"' -r 5 ssh://user@dummy/remote
167 167 pulling from ssh://user@dummy/remote
168 168 searching for changes
169 169 adding changesets
@@ -177,7 +177,7 b' clone remote via stream'
177 177 crosschecking files in changesets and manifests
178 178 checking files
179 179 1 files, 5 changesets, 3 total revisions
180 $ hg pull -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote
180 $ hg pull -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote
181 181 pulling from ssh://user@dummy/remote
182 182 searching for changes
183 183 adding changesets
@@ -20,21 +20,21 b" creating 'remote' repo"
20 20
21 21 repo not found error
22 22
23 $ hg clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/nonexistent local
23 $ hg clone -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/nonexistent local
24 24 remote: abort: There is no Mercurial repository here (.hg not found)!
25 25 abort: no suitable response from remote hg!
26 26 [255]
27 27
28 28 non-existent absolute path
29 29
30 $ hg clone -e "python $TESTDIR/dummyssh" ssh://user@dummy//`pwd`/nonexistent local
30 $ hg clone -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy//`pwd`/nonexistent local
31 31 remote: abort: There is no Mercurial repository here (.hg not found)!
32 32 abort: no suitable response from remote hg!
33 33 [255]
34 34
35 35 clone remote via stream
36 36
37 $ hg clone -e "python $TESTDIR/dummyssh" --uncompressed ssh://user@dummy/remote local-stream
37 $ hg clone -e 'python "$TESTDIR/dummyssh"' --uncompressed ssh://user@dummy/remote local-stream
38 38 streaming all changes
39 39 4 files to transfer, 392 bytes of data
40 40 transferred 392 bytes in * seconds (*/sec) (glob)
@@ -51,7 +51,7 b' clone remote via stream'
51 51
52 52 clone remote via pull
53 53
54 $ hg clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote local
54 $ hg clone -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote local
55 55 requesting all changes
56 56 adding changesets
57 57 adding manifests
@@ -76,7 +76,7 b' empty default pull'
76 76
77 77 $ hg paths
78 78 default = ssh://user@dummy/remote
79 $ hg pull -e "python $TESTDIR/dummyssh"
79 $ hg pull -e 'python "$TESTDIR/dummyssh"'
80 80 pulling from ssh://user@dummy/remote
81 81 searching for changes
82 82 no changes found
@@ -90,7 +90,7 b' updating rc'
90 90
91 91 $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc
92 92 $ echo "[ui]" >> .hg/hgrc
93 $ echo "ssh = python $TESTDIR/dummyssh" >> .hg/hgrc
93 $ echo 'ssh = python "$TESTDIR/dummyssh"' >> .hg/hgrc
94 94
95 95 find outgoing
96 96
@@ -106,7 +106,7 b' find outgoing'
106 106
107 107 find incoming on the remote side
108 108
109 $ hg incoming -R ../remote -e "python $TESTDIR/dummyssh" ssh://user@dummy/local
109 $ hg incoming -R ../remote -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/local
110 110 comparing with ssh://user@dummy/local
111 111 searching for changes
112 112 changeset: 1:a28a9d1a809c
@@ -118,7 +118,7 b' find incoming on the remote side'
118 118
119 119 find incoming on the remote side (using absolute path)
120 120
121 $ hg incoming -R ../remote -e "python $TESTDIR/dummyssh" "ssh://user@dummy/`pwd`"
121 $ hg incoming -R ../remote -e 'python "$TESTDIR/dummyssh"' "ssh://user@dummy/`pwd`"
122 122 comparing with ssh://user@dummy/$TESTTMP/local
123 123 searching for changes
124 124 changeset: 1:a28a9d1a809c
@@ -163,7 +163,7 b' check remote tip'
163 163 test pushkeys and bookmarks
164 164
165 165 $ cd ../local
166 $ hg debugpushkey --config ui.ssh="python $TESTDIR/dummyssh" ssh://user@dummy/remote namespaces
166 $ hg debugpushkey --config ui.ssh='python "$TESTDIR/dummyssh"' ssh://user@dummy/remote namespaces
167 167 bookmarks
168 168 phases
169 169 namespaces
@@ -178,7 +178,7 b' test pushkeys and bookmarks'
178 178 no changes found
179 179 exporting bookmark foo
180 180 [1]
181 $ hg debugpushkey --config ui.ssh="python $TESTDIR/dummyssh" ssh://user@dummy/remote bookmarks
181 $ hg debugpushkey --config ui.ssh='python "$TESTDIR/dummyssh"' ssh://user@dummy/remote bookmarks
182 182 foo 1160648e36cec0054048a7edc4110c6f84fde594
183 183 $ hg book -f foo
184 184 $ hg push --traceback
@@ -249,7 +249,7 b' clone bookmarks'
249 249 $ hg -R ../remote bookmark test
250 250 $ hg -R ../remote bookmarks
251 251 * test 2:6c0482d977a3
252 $ hg clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/remote local-bookmarks
252 $ hg clone -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote local-bookmarks
253 253 requesting all changes
254 254 adding changesets
255 255 adding manifests
@@ -273,9 +273,9 b' results here)'
273 273
274 274 Test remote paths with spaces (issue2983):
275 275
276 $ hg init --ssh "python $TESTDIR/dummyssh" "ssh://user@dummy/a repo"
276 $ hg init --ssh 'python "$TESTDIR/dummyssh"' "ssh://user@dummy/a repo"
277 277 $ hg -R 'a repo' tag tag
278 $ hg id --ssh "python $TESTDIR/dummyssh" "ssh://user@dummy/a repo"
278 $ hg id --ssh 'python "$TESTDIR/dummyssh"' "ssh://user@dummy/a repo"
279 279 3fb238f49e8c
280 280
281 281 Test hg-ssh:
@@ -169,9 +169,9 b' hg status -A:'
169 169
170 170 hg status -A (with terminfo color):
171 171
172 $ mkdir $TESTTMP/terminfo
173 $ TERMINFO=$TESTTMP/terminfo tic $TESTDIR/hgterm.ti
174 $ TERM=hgterm TERMINFO=$TESTTMP/terminfo hg status --config color.mode=terminfo --color=always -A
172 $ mkdir "$TESTTMP/terminfo"
173 $ TERMINFO="$TESTTMP/terminfo" tic "$TESTDIR/hgterm.ti"
174 $ TERM=hgterm TERMINFO="$TESTTMP/terminfo" hg status --config color.mode=terminfo --color=always -A
175 175 \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc)
176 176 \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc)
177 177 \x1b[30m\x1b[30m modified\x1b[30m (esc)
@@ -262,7 +262,7 b' Enable progress extension for archive te'
262 262 Test archiving to a directory tree (the doubled lines in the output
263 263 only show up in the test output, not in real usage):
264 264
265 $ hg archive --subrepos ../archive 2>&1 | $TESTDIR/filtercr.py
265 $ hg archive --subrepos ../archive 2>&1 | "$TESTDIR/filtercr.py"
266 266
267 267 archiving [ ] 0/3
268 268 archiving [ ] 0/3
@@ -302,7 +302,7 b' only show up in the test output, not in '
302 302
303 303 Test archiving to zip file (unzip output is unstable):
304 304
305 $ hg archive --subrepos ../archive.zip 2>&1 | $TESTDIR/filtercr.py
305 $ hg archive --subrepos ../archive.zip 2>&1 | "$TESTDIR/filtercr.py"
306 306
307 307 archiving [ ] 0/3
308 308 archiving [ ] 0/3
@@ -333,7 +333,7 b' cloned:'
333 333
334 334 $ hg clone -U . ../empty
335 335 $ cd ../empty
336 $ hg archive --subrepos -r tip ../archive.tar.gz 2>&1 | $TESTDIR/filtercr.py
336 $ hg archive --subrepos -r tip ../archive.tar.gz 2>&1 | "$TESTDIR/filtercr.py"
337 337
338 338 archiving [ ] 0/3
339 339 archiving [ ] 0/3
@@ -72,7 +72,7 b" subrepo debug for 'main' clone"
72 72
73 73 subrepo paths with ssh urls
74 74
75 $ cp $TESTDIR/dummyssh $BINDIR/ssh
75 $ cp "$TESTDIR/dummyssh" "$BINDIR/ssh"
76 76
77 77 $ hg clone ssh://user@dummy/cloned sshclone
78 78 requesting all changes
@@ -103,4 +103,4 b' subrepo paths with ssh urls'
103 103 Got arguments 1:user@dummy 2:hg -R sub serve --stdio
104 104 Got arguments 1:user@dummy 2:hg -R $TESTTMP/cloned serve --stdio
105 105 Got arguments 1:user@dummy 2:hg -R $TESTTMP/sub serve --stdio
106 $ rm $BINDIR/ssh
106 $ rm "$BINDIR/ssh"
@@ -195,13 +195,13 b' now addremove should remove old files'
195 195
196 196 $ hg manifest --debug
197 197 2564acbe54bbbedfbf608479340b359f04597f80 644 @ dangling
198 $ $TESTDIR/readlink.py dangling
198 $ "$TESTDIR/readlink.py" dangling
199 199 dangling -> nothing
200 200
201 201 $ rm dangling
202 202 $ ln -s void dangling
203 203 $ hg commit -m 'change symlink'
204 $ $TESTDIR/readlink.py dangling
204 $ "$TESTDIR/readlink.py" dangling
205 205 dangling -> void
206 206
207 207
@@ -209,7 +209,7 b' modifying link'
209 209
210 210 $ rm dangling
211 211 $ ln -s empty dangling
212 $ $TESTDIR/readlink.py dangling
212 $ "$TESTDIR/readlink.py" dangling
213 213 dangling -> empty
214 214
215 215
@@ -217,13 +217,13 b' reverting to rev 0:'
217 217
218 218 $ hg revert -r 0 -a
219 219 reverting dangling
220 $ $TESTDIR/readlink.py dangling
220 $ "$TESTDIR/readlink.py" dangling
221 221 dangling -> nothing
222 222
223 223
224 224 backups:
225 225
226 $ $TESTDIR/readlink.py *.orig
226 $ "$TESTDIR/readlink.py" *.orig
227 227 dangling.orig -> empty
228 228 $ rm *.orig
229 229 $ hg up -C
@@ -236,7 +236,7 b' copies'
236 236 $ hg st -Cmard
237 237 A dangling2
238 238 dangling
239 $ $TESTDIR/readlink.py dangling dangling2
239 $ "$TESTDIR/readlink.py" dangling dangling2
240 240 dangling -> void
241 241 dangling2 -> void
242 242
General Comments 0
You need to be logged in to leave comments. Login now