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