##// END OF EJS Templates
cleanup: use $PYTHON to run python in many more tests...
Augie Fackler -
r32940:75be1499 default
parent child Browse files
Show More
@@ -57,7 +57,7 b' comparing two empty files caused ZeroDiv'
57 57
58 58 should be sorted by path for stable result
59 59
60 $ for i in `python $TESTDIR/seq.py 0 9`; do
60 $ for i in `$PYTHON $TESTDIR/seq.py 0 9`; do
61 61 > cp small-file $i
62 62 > done
63 63 $ rm small-file
@@ -88,7 +88,7 b' should be sorted by path for stable resu'
88 88 pick one from many identical files
89 89
90 90 $ cp 0 a
91 $ rm `python $TESTDIR/seq.py 0 9`
91 $ rm `$PYTHON $TESTDIR/seq.py 0 9`
92 92 $ hg addremove
93 93 removing 0
94 94 removing 1
@@ -107,11 +107,11 b' pick one from many identical files'
107 107 pick one from many similar files
108 108
109 109 $ cp 0 a
110 $ for i in `python $TESTDIR/seq.py 0 9`; do
110 $ for i in `$PYTHON $TESTDIR/seq.py 0 9`; do
111 111 > echo $i >> $i
112 112 > done
113 113 $ hg commit -m 'make them slightly different'
114 $ rm `python $TESTDIR/seq.py 0 9`
114 $ rm `$PYTHON $TESTDIR/seq.py 0 9`
115 115 $ hg addremove -s50
116 116 removing 0
117 117 removing 1
@@ -105,7 +105,7 b' invalid arch type should give 404'
105 105 > except util.urlerr.httperror as e:
106 106 > sys.stderr.write(str(e) + '\n')
107 107 > EOF
108 $ python getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null
108 $ $PYTHON getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null
109 109 test-archive-1701ef1f1510/.hg_archival.txt
110 110 test-archive-1701ef1f1510/.hgsub
111 111 test-archive-1701ef1f1510/.hgsubstate
@@ -113,7 +113,7 b' invalid arch type should give 404'
113 113 test-archive-1701ef1f1510/baz/bletch
114 114 test-archive-1701ef1f1510/foo
115 115 test-archive-1701ef1f1510/subrepo/sub
116 $ python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null
116 $ $PYTHON getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null
117 117 test-archive-1701ef1f1510/.hg_archival.txt
118 118 test-archive-1701ef1f1510/.hgsub
119 119 test-archive-1701ef1f1510/.hgsubstate
@@ -121,7 +121,7 b' invalid arch type should give 404'
121 121 test-archive-1701ef1f1510/baz/bletch
122 122 test-archive-1701ef1f1510/foo
123 123 test-archive-1701ef1f1510/subrepo/sub
124 $ python getarchive.py "$TIP" zip > archive.zip
124 $ $PYTHON getarchive.py "$TIP" zip > archive.zip
125 125 $ unzip -t archive.zip
126 126 Archive: archive.zip
127 127 testing: test-archive-1701ef1f1510/.hg_archival.txt*OK (glob)
@@ -135,19 +135,19 b' invalid arch type should give 404'
135 135
136 136 test that we can download single directories and files
137 137
138 $ python getarchive.py "$TIP" gz baz | gunzip | tar tf - 2>/dev/null
138 $ $PYTHON getarchive.py "$TIP" gz baz | gunzip | tar tf - 2>/dev/null
139 139 test-archive-1701ef1f1510/baz/bletch
140 $ python getarchive.py "$TIP" gz foo | gunzip | tar tf - 2>/dev/null
140 $ $PYTHON getarchive.py "$TIP" gz foo | gunzip | tar tf - 2>/dev/null
141 141 test-archive-1701ef1f1510/foo
142 142
143 143 test that we detect file patterns that match no files
144 144
145 $ python getarchive.py "$TIP" gz foobar
145 $ $PYTHON getarchive.py "$TIP" gz foobar
146 146 HTTP Error 404: file(s) not found: foobar
147 147
148 148 test that we reject unsafe patterns
149 149
150 $ python getarchive.py "$TIP" gz relre:baz
150 $ $PYTHON getarchive.py "$TIP" gz relre:baz
151 151 HTTP Error 404: file(s) not found: relre:baz
152 152
153 153 $ killdaemons.py
@@ -231,7 +231,7 b' rename them afterwards.'
231 231 $ sleep 1
232 232 $ hg archive -t tgz tip.tar.gz
233 233 $ mv tip.tar.gz tip2.tar.gz
234 $ python md5comp.py tip1.tar.gz tip2.tar.gz
234 $ $PYTHON md5comp.py tip1.tar.gz tip2.tar.gz
235 235 True
236 236
237 237 $ hg archive -t zip -p /illegal test.zip
@@ -364,12 +364,12 b' configured as GMT.'
364 364
365 365 $ hg -R repo archive --prefix tar-extracted archive.tar
366 366 $ (TZ=UTC-3; export TZ; tar xf archive.tar)
367 $ python show_mtime.py tar-extracted/a
367 $ $PYTHON show_mtime.py tar-extracted/a
368 368 456789012
369 369
370 370 $ hg -R repo archive --prefix zip-extracted archive.zip
371 371 $ (TZ=UTC-3; export TZ; unzip -q archive.zip)
372 $ python show_mtime.py zip-extracted/a
372 $ $PYTHON show_mtime.py zip-extracted/a
373 373 456789012
374 374
375 375 $ cd ..
@@ -7,7 +7,7 b''
7 7 $ test -d copy
8 8 [1]
9 9
10 $ python "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
10 $ $PYTHON "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
11 11 $ cat dumb.pid >> $DAEMON_PIDS
12 12 $ hg clone http://localhost:$HGPORT/foo copy2
13 13 abort: HTTP Error 404: * (glob)
@@ -60,7 +60,7 b' Verify that updating to revision 0 via c'
60 60 > EOF
61 61 $ hg up null
62 62 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
63 $ python ./update_to_rev0.py
63 $ $PYTHON ./update_to_rev0.py
64 64 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
65 65 $ hg identify -n
66 66 0
@@ -463,12 +463,12 b' test bisecting command'
463 463 $ chmod +x script.py
464 464 $ hg bisect -r
465 465 $ hg up -qr tip
466 $ hg bisect --command "python \"$TESTTMP/script.py\" and some parameters"
466 $ hg bisect --command "$PYTHON \"$TESTTMP/script.py\" and some parameters"
467 467 changeset 31:58c80a7c8a40: good
468 468 abort: cannot bisect (no known bad revisions)
469 469 [255]
470 470 $ hg up -qr 0
471 $ hg bisect --command "python \"$TESTTMP/script.py\" and some parameters"
471 $ hg bisect --command "$PYTHON \"$TESTTMP/script.py\" and some parameters"
472 472 changeset 0:b99c7b9c8e11: bad
473 473 changeset 15:e7fa0811edb0: good
474 474 changeset 7:03750880c6b5: good
@@ -172,7 +172,7 b' log rotation'
172 172 $ sed -e 's/\(.*test1.*\)/#\1/; s#\(.*commit2.*\)#os.rmdir(".hg/blackbox.log")\
173 173 > os.rename(".hg/blackbox.log-", ".hg/blackbox.log")\
174 174 > \1#' $TESTDIR/test-dispatch.py > ../test-dispatch.py
175 $ python $TESTDIR/blackbox-readonly-dispatch.py
175 $ $PYTHON $TESTDIR/blackbox-readonly-dispatch.py
176 176 running: add foo
177 177 result: 0
178 178 running: commit -m commit1 -d 2000-01-01 foo
@@ -203,7 +203,7 b' divergent bookmarks'
203 203
204 204 (test that too many divergence of bookmark)
205 205
206 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
206 $ $PYTHON $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
207 207 $ hg pull ../a
208 208 pulling from ../a
209 209 searching for changes
@@ -231,7 +231,7 b' divergent bookmarks'
231 231 @1 2:0d2164f0ce0d
232 232 @foo 2:0d2164f0ce0d
233 233
234 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
234 $ $PYTHON $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
235 235 $ hg bookmarks -d "@1"
236 236
237 237 $ hg push -f ../a
@@ -74,7 +74,7 b' Create an extension to test bundle2 remo'
74 74
75 75 Start a simple HTTP server to serve bundles
76 76
77 $ python "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
77 $ $PYTHON "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
78 78 $ cat dumb.pid >> $DAEMON_PIDS
79 79
80 80 $ cat >> $HGRCPATH << EOF
@@ -304,7 +304,7 b' Can re-add file after being deleted + ce'
304 304
305 305 Can censor after revlog has expanded to no longer permit inline storage
306 306
307 $ for x in `python $TESTDIR/seq.py 0 50000`
307 $ for x in `$PYTHON $TESTDIR/seq.py 0 50000`
308 308 > do
309 309 > echo "Password: hunter$x" >> target
310 310 > done
@@ -23,7 +23,7 b' Sanity check check-config.py'
23 23
24 24 $ cd "$TESTDIR"/..
25 25
26 $ python contrib/check-config.py < $TESTTMP/files
26 $ $PYTHON contrib/check-config.py < $TESTTMP/files
27 27 undocumented: ui.doesnotexist (str)
28 28 undocumented: ui.missingbool1 (bool) [True]
29 29 undocumented: ui.missingbool2 (bool)
@@ -32,7 +32,7 b' Sanity check check-config.py'
32 32 New errors are not allowed. Warnings are strongly discouraged.
33 33
34 34 $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' |
35 > python contrib/check-config.py
35 > $PYTHON contrib/check-config.py
36 36 limit = ui.configwith(fraction, 'profiling', 'showmin', 0.05)
37 37
38 38 conflict on profiling.showmin: ('with', '0.05') != ('with', '0.005')
@@ -24,5 +24,5 b' Check if ":hg:`help TOPIC`" is valid:'
24 24 (use "xargs -n1 -t" to see which help commands are executed)
25 25
26 26 $ hg files 'glob:{hgdemandimport,hgext,mercurial}/**/*.py' | sed 's|\\|/|g' \
27 > | xargs python "$TESTTMP/scanhelptopics.py" \
27 > | xargs $PYTHON "$TESTTMP/scanhelptopics.py" \
28 28 > | xargs -n1 hg help > /dev/null
@@ -3,7 +3,7 b''
3 3 $ . "$TESTDIR/helpers-testrepo.sh"
4 4 $ cd "$TESTDIR"/..
5 5
6 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
6 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON contrib/check-py3-compat.py
7 7 contrib/python-zstandard/setup.py not using absolute_import
8 8 contrib/python-zstandard/setup_zstd.py not using absolute_import
9 9 contrib/python-zstandard/tests/common.py not using absolute_import
@@ -89,7 +89,7 b' enable pager extension globally, but spa'
89 89 > [extensions]
90 90 > pager =
91 91 > [pager]
92 > pager = python $TESTTMP/fakepager.py
92 > pager = $PYTHON $TESTTMP/fakepager.py
93 93 > EOF
94 94 $ chg version > /dev/null
95 95 $ touch foo
@@ -27,7 +27,7 b' try hgweb request'
27 27 $ . "$TESTDIR/cgienv"
28 28 $ QUERY_STRING="cmd=changegroup&roots=0000000000000000000000000000000000000000"; export QUERY_STRING
29 29 $ python hgweb.cgi >page1 2>&1
30 $ python "$TESTDIR/md5sum.py" page1
30 $ $PYTHON "$TESTDIR/md5sum.py" page1
31 31 1f424bb22ec05c3c6bc866b6e67efe43 page1
32 32
33 33 make sure headers are sent even when there is no body
@@ -524,7 +524,7 b' iterable in addbranchrevs()'
524 524 > hg.clone(myui, {}, repo, dest="ua")
525 525 > EOF
526 526
527 $ python simpleclone.py
527 $ $PYTHON simpleclone.py
528 528 updating to branch default
529 529 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
530 530
@@ -538,7 +538,7 b' iterable in addbranchrevs()'
538 538 > hg.clone(myui, {}, repo, dest="ua", branch=["stable",])
539 539 > EOF
540 540
541 $ python branchclone.py
541 $ $PYTHON branchclone.py
542 542 adding changesets
543 543 adding manifests
544 544 adding file changes
@@ -69,7 +69,7 b' Server is not running aborts'
69 69
70 70 Server returns 404
71 71
72 $ python $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid
72 $ $PYTHON $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid
73 73 $ cat http.pid >> $DAEMON_PIDS
74 74 $ hg clone http://localhost:$HGPORT running-404
75 75 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
@@ -909,7 +909,7 b' This tests that translated help message '
909 909 > sys.stdout.write(''.join(escape(c) for c in l))
910 910 > EOF
911 911
912 $ hg commit -i --encoding cp932 2>&1 <<EOF | python $TESTTMP/escape.py | grep '^y - '
912 $ hg commit -i --encoding cp932 2>&1 <<EOF | $PYTHON $TESTTMP/escape.py | grep '^y - '
913 913 > ?
914 914 > q
915 915 > EOF
@@ -21,7 +21,7 b' ghost revisions'
21 21 $ bzr add -q somefile
22 22 $ bzr commit -q -m 'Initial layout setup'
23 23 $ echo morecontent >> somefile
24 $ python ../../ghostcreator.py 'Commit with ghost revision' ghostrev
24 $ $PYTHON ../../ghostcreator.py 'Commit with ghost revision' ghostrev
25 25 $ cd ..
26 26 $ hg convert source source-hg
27 27 initializing destination source-hg repository
@@ -20,7 +20,7 b' change the id of the tree root'
20 20 $ echo content > file
21 21 $ bzr add -q file
22 22 $ bzr commit -q -m 'Initial add'
23 $ python ../../treeset.py 'Changed root' new
23 $ $PYTHON ../../treeset.py 'Changed root' new
24 24 $ cd ..
25 25 $ hg convert source source-hg
26 26 initializing destination source-hg repository
@@ -129,10 +129,10 b' merge'
129 129 $ bzr branch -q source source-improve
130 130 $ cd source
131 131 $ echo more >> a
132 $ python ../helper.py 'Editing a' 100
132 $ $PYTHON ../helper.py 'Editing a' 100
133 133 $ cd ../source-improve
134 134 $ echo content3 >> b
135 $ python ../helper.py 'Editing b' 200
135 $ $PYTHON ../helper.py 'Editing b' 200
136 136 $ cd ../source
137 137 $ bzr merge -q ../source-improve
138 138 $ bzr commit -q -m 'Merged improve branch'
@@ -40,7 +40,7 b' Miss perl... sometimes'
40 40 convert
41 41
42 42 $ hg convert -v --config convert.hg.clonebranches=1 source dest |
43 > python filter.py
43 > $PYTHON filter.py
44 44 3 adda
45 45 2 changea
46 46 1 addb
@@ -73,7 +73,7 b' Add a merge with both parents and child '
73 73 incremental conversion
74 74
75 75 $ hg convert -v --config convert.hg.clonebranches=1 source dest |
76 > python filter.py
76 > $PYTHON filter.py
77 77 2 c1
78 78 pulling from branch0 into branch1
79 79 4 changesets found
@@ -130,7 +130,7 b' check shamap LF and CRLF handling'
130 130 > for i, l in enumerate(file(sys.argv[1]))]
131 131 > file(sys.argv[1], 'wb').write(''.join(lines))
132 132 > EOF
133 $ python rewrite.py new/.hg/shamap
133 $ $PYTHON rewrite.py new/.hg/shamap
134 134 $ cd orig
135 135 $ hg up -qC 1
136 136 $ echo foo >> foo
@@ -10,7 +10,7 b''
10 10 > if [ $2 -gt 0 ]; then
11 11 > limit="--limit=$2"
12 12 > fi
13 > svn log --xml -v $limit | python "$TESTDIR/svnxml.py"
13 > svn log --xml -v $limit | $PYTHON "$TESTDIR/svnxml.py"
14 14 > )
15 15 > }
16 16
@@ -142,7 +142,7 b' Test internal debugstacktrace command'
142 142 > dst('hi ...\\nfrom h hidden in g', 1, depth=2)
143 143 > f()
144 144 > EOF
145 $ python debugstacktrace.py
145 $ $PYTHON debugstacktrace.py
146 146 stacktrace at:
147 147 debugstacktrace.py:10 in * (glob)
148 148 debugstacktrace.py:3 in f
@@ -83,7 +83,7 b' Test text mode with extended git-style d'
83 83 > path = sys.argv[1]
84 84 > open(path, 'wb').write('\x00\x01\x02\x03')
85 85 > EOF
86 $ python writebin.py binfile.bin
86 $ $PYTHON writebin.py binfile.bin
87 87 $ hg add binfile.bin
88 88 $ hg ci -m 'add binfile.bin'
89 89
@@ -69,7 +69,7 b' Set up helpers'
69 69 > echo '% a.txt'
70 70 > cat a.txt
71 71 > hg diff
72 > python ../switch-eol.py $1 a.txt
72 > $PYTHON ../switch-eol.py $1 a.txt
73 73 > echo '% hg diff only reports a single changed line:'
74 74 > hg diff
75 75 > echo "% reverting back to $1 format"
@@ -2,15 +2,15 b''
2 2
3 3 Set up history and working copy
4 4
5 $ python $TESTDIR/generate-working-copy-states.py state 2 1
5 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 1
6 6 $ hg addremove -q --similarity 0
7 7 $ hg commit -m first
8 8
9 $ python $TESTDIR/generate-working-copy-states.py state 2 2
9 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 2
10 10 $ hg addremove -q --similarity 0
11 11 $ hg commit -m second
12 12
13 $ python $TESTDIR/generate-working-copy-states.py state 2 wc
13 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 wc
14 14 $ hg addremove -q --similarity 0
15 15 $ hg forget *_*_*-untracked
16 16 $ rm *_*_missing-*
@@ -8,7 +8,7 b' Test document extraction'
8 8 $ { echo C; ls "$TESTDIR/../i18n"/*.po | sort; } | while read PO; do
9 9 > LOCALE=`basename "$PO" .po`
10 10 > echo "% extracting documentation from $LOCALE"
11 > LANGUAGE=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
11 > LANGUAGE=$LOCALE $PYTHON "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
12 12 >
13 13 > if [ $LOCALE != C ]; then
14 14 > if [ ! -f $TESTDIR/test-gendoc-$LOCALE.t ]; then
@@ -10,7 +10,7 b''
10 10
11 11 $ nlinksdir()
12 12 > {
13 > find "$@" -type f | python $TESTTMP/nlinks.py
13 > find "$@" -type f | $PYTHON $TESTTMP/nlinks.py
14 14 > }
15 15
16 16 Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux):
@@ -23,7 +23,7 b" Some implementations of cp can't create "
23 23
24 24 $ linkcp()
25 25 > {
26 > python $TESTTMP/linkcp.py $1 $2
26 > $PYTHON $TESTTMP/linkcp.py $1 $2
27 27 > }
28 28
29 29 Prepare repo r1:
@@ -1867,7 +1867,7 b' Compression engines listed in `hg help b'
1867 1867 Test usage of section marks in help documents
1868 1868
1869 1869 $ cd "$TESTDIR"/../doc
1870 $ python check-seclevel.py
1870 $ $PYTHON check-seclevel.py
1871 1871 $ cd $TESTTMP
1872 1872
1873 1873 #if serve
@@ -19,7 +19,7 b' Issue562: .hgignore requires newline at '
19 19 > f.close()
20 20 > EOF
21 21
22 $ python makeignore.py
22 $ $PYTHON makeignore.py
23 23
24 24 Should display baz only:
25 25
@@ -70,7 +70,7 b' should be used from d74fc8dec2b4 onward '
70 70 > env['QUERY_STRING'] = 'style=raw'
71 71 > process(hgwebdir({'repo': '.'}))
72 72 > EOF
73 $ python request.py
73 $ $PYTHON request.py
74 74 ---- STATUS
75 75 200 Script output follows
76 76 ---- HEADERS
@@ -81,7 +81,7 b' should be used from d74fc8dec2b4 onward '
81 81 > env['QUERY_STRING'] = 'style=raw'
82 82 > process(hgwebdir({'repo': '.'}))
83 83 > EOF
84 $ python request.py
84 $ $PYTHON request.py
85 85 ---- STATUS
86 86 200 Script output follows
87 87 ---- HEADERS
@@ -76,7 +76,7 b' by the WSGI standard and strictly implem'
76 76 > with i._obtainrepo() as repo:
77 77 > print sorted([x for x in repo.ui.environ if x.startswith('wsgi')])
78 78 > EOF
79 $ python request.py
79 $ $PYTHON request.py
80 80 ---- STATUS
81 81 200 Script output follows
82 82 ---- HEADERS
@@ -45,6 +45,6 b' Check Mercurial specific translation pro'
45 45 tool itself by doctest
46 46
47 47 $ cd "$TESTDIR"/../i18n
48 $ python check-translation.py *.po
49 $ python check-translation.py --doctest
48 $ $PYTHON check-translation.py *.po
49 $ $PYTHON check-translation.py --doctest
50 50 $ cd $TESTTMP
@@ -30,12 +30,12 b''
30 30 $ hg export 1 > ../r1.patch
31 31 $ cd ..
32 32
33 $ if python findbranch.py < r0.patch; then
33 $ if $PYTHON findbranch.py < r0.patch; then
34 34 > echo "Export of default branch revision has Branch header" 1>&2
35 35 > exit 1
36 36 > fi
37 37
38 $ if python findbranch.py < r1.patch; then
38 $ if $PYTHON findbranch.py < r1.patch; then
39 39 > : # Do nothing
40 40 > else
41 41 > echo "Export of branch revision is missing Branch header" 1>&2
@@ -26,10 +26,10 b' Initialize the test repository'
26 26
27 27 $ hg init repo
28 28 $ cd repo
29 $ python ../writepatterns.py a 0 5A 1B 5C 1D
30 $ python ../writepatterns.py b 1 1A 1B
31 $ python ../writepatterns.py c 1 5A
32 $ python ../writepatterns.py d 1 5A 1B
29 $ $PYTHON ../writepatterns.py a 0 5A 1B 5C 1D
30 $ $PYTHON ../writepatterns.py b 1 1A 1B
31 $ $PYTHON ../writepatterns.py c 1 5A
32 $ $PYTHON ../writepatterns.py d 1 5A 1B
33 33 $ hg add
34 34 adding a
35 35 adding b
@@ -114,13 +114,13 b' Add file, missing a last end of line'
114 114
115 115 What's in a
116 116
117 $ python ../cat.py a
117 $ $PYTHON ../cat.py a
118 118 'A\nA\nA\nA\nA\nE\nC\nC\nC\nC\nC\nF\nF\n'
119 $ python ../cat.py newnoeol
119 $ $PYTHON ../cat.py newnoeol
120 120 'a\nb'
121 $ python ../cat.py c
121 $ $PYTHON ../cat.py c
122 122 'A\nA\nA\nA\nA\nB\nB\n'
123 $ python ../cat.py d
123 $ $PYTHON ../cat.py d
124 124 'A\nA\nA\nA\n'
125 125
126 126 $ cd ..
@@ -29,7 +29,7 b' Test different --eol values'
29 29 $ hg ci -Am adda
30 30 adding .hgignore
31 31 adding a
32 $ python ../makepatch.py
32 $ $PYTHON ../makepatch.py
33 33
34 34
35 35 invalid eol
@@ -64,7 +64,7 b' regardless of the commit message in the '
64 64 added 1 changesets with 2 changes to 2 files
65 65 updating to branch default
66 66 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
67 $ HGEDITOR=cat hg --config ui.patch='python ../dummypatch.py' --cwd b import --edit ../exported-tip.patch
67 $ HGEDITOR=cat hg --config ui.patch='$PYTHON ../dummypatch.py' --cwd b import --edit ../exported-tip.patch
68 68 applying ../exported-tip.patch
69 69 second change
70 70
@@ -294,7 +294,7 b' plain diff in email, subject, message bo'
294 294 added 1 changesets with 2 changes to 2 files
295 295 updating to branch default
296 296 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
297 $ python mkmsg.py diffed-tip.patch msg.patch
297 $ $PYTHON mkmsg.py diffed-tip.patch msg.patch
298 298 $ hg --cwd b import ../msg.patch
299 299 applying ../msg.patch
300 300 $ hg --cwd b tip | grep email
@@ -356,7 +356,7 b' hg export in email, should use patch hea'
356 356 added 1 changesets with 2 changes to 2 files
357 357 updating to branch default
358 358 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
359 $ python mkmsg.py exported-tip.patch msg.patch
359 $ $PYTHON mkmsg.py exported-tip.patch msg.patch
360 360 $ cat msg.patch | hg --cwd b import -
361 361 applying patch from stdin
362 362 $ hg --cwd b tip | grep second
@@ -387,7 +387,7 b' plain diff in email, [PATCH] subject, me'
387 387 added 1 changesets with 2 changes to 2 files
388 388 updating to branch default
389 389 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
390 $ python mkmsg2.py diffed-tip.patch msg.patch
390 $ $PYTHON mkmsg2.py diffed-tip.patch msg.patch
391 391 $ cat msg.patch | hg --cwd b import -
392 392 applying patch from stdin
393 393 $ hg --cwd b tip --template '{desc}\n'
@@ -124,7 +124,7 b' Run additional tests for the import chec'
124 124 > from mercurial.node import hex
125 125 > EOF
126 126
127 $ python "$import_checker" testpackage*/*.py testpackage/subpackage/*.py
127 $ $PYTHON "$import_checker" testpackage*/*.py testpackage/subpackage/*.py
128 128 testpackage/importalias.py:2: ui module must be "as" aliased to uimod
129 129 testpackage/importfromalias.py:2: ui from testpackage must be "as" aliased to uimod
130 130 testpackage/importfromrelative.py:2: import should be relative: testpackage.unsorted
@@ -45,7 +45,7 b' before commit'
45 45 store can be written by the group, other files cannot
46 46 store is setgid
47 47
48 $ python ../printmodes.py .
48 $ $PYTHON ../printmodes.py .
49 49 00700 ./.hg/
50 50 00600 ./.hg/00changelog.i
51 51 00600 ./.hg/requires
@@ -61,7 +61,7 b' files created in .hg can be written by t'
61 61 (in particular, store/**, dirstate, branch cache file, undo files)
62 62 new directories are setgid
63 63
64 $ python ../printmodes.py .
64 $ $PYTHON ../printmodes.py .
65 65 00700 ./.hg/
66 66 00600 ./.hg/00changelog.i
67 67 00770 ./.hg/cache/
@@ -98,7 +98,7 b' new directories are setgid'
98 98 before push
99 99 group can write everything
100 100
101 $ python ../printmodes.py ../push
101 $ $PYTHON ../printmodes.py ../push
102 102 00770 ../push/.hg/
103 103 00660 ../push/.hg/00changelog.i
104 104 00660 ../push/.hg/requires
@@ -110,7 +110,7 b' group can write everything'
110 110 after push
111 111 group can still write everything
112 112
113 $ python ../printmodes.py ../push
113 $ $PYTHON ../printmodes.py ../push
114 114 00770 ../push/.hg/
115 115 00660 ../push/.hg/00changelog.i
116 116 00770 ../push/.hg/cache/
@@ -146,8 +146,8 b' just check that directories have the sam'
146 146 $ mkdir dir
147 147 $ touch dir/file
148 148 $ hg ci -qAm 'add dir/file'
149 $ storemode=`python ../mode.py .hg/store`
150 $ dirmode=`python ../mode.py .hg/store/data/dir`
149 $ storemode=`$PYTHON ../mode.py .hg/store`
150 $ dirmode=`$PYTHON ../mode.py .hg/store/data/dir`
151 151 $ if [ "$storemode" != "$dirmode" ]; then
152 152 > echo "$storemode != $dirmode"
153 153 > fi
@@ -159,7 +159,7 b' path variables are expanded (~ is the sa'
159 159 > print(' %s' % f)
160 160 > EOF
161 161
162 $ python wixxml.py help
162 $ $PYTHON wixxml.py help
163 163 Not installed:
164 164 help/common.txt
165 165 help/hg-ssh.8.txt
@@ -168,7 +168,7 b' path variables are expanded (~ is the sa'
168 168 help/hgrc.5.txt
169 169 Not tracked:
170 170
171 $ python wixxml.py templates
171 $ $PYTHON wixxml.py templates
172 172 Not installed:
173 173 Not tracked:
174 174
@@ -16,12 +16,12 b' A script to generate nasty diff worst-ca'
16 16
17 17 Check in a big file:
18 18
19 $ python ../s.py > a
19 $ $PYTHON ../s.py > a
20 20 $ hg ci -qAm0
21 21
22 22 Modify it:
23 23
24 $ python ../s.py > a
24 $ $PYTHON ../s.py > a
25 25
26 26 Time a check-in, should never take more than 10 seconds user time:
27 27
@@ -24,7 +24,7 b''
24 24 $ hg add f
25 25 $ hg ci -m 1
26 26
27 $ python unix2mac.py f
27 $ $PYTHON unix2mac.py f
28 28 $ hg ci -m 2
29 29 attempt to commit or push text file(s) using CR line endings
30 30 in dea860dc51ec: f
@@ -32,7 +32,7 b''
32 32 rollback completed
33 33 abort: pretxncommit.cr hook failed
34 34 [255]
35 $ hg cat f | python print.py
35 $ hg cat f | $PYTHON print.py
36 36 hello<LF>
37 $ cat f | python print.py
37 $ cat f | $PYTHON print.py
38 38 hello<CR>
@@ -10,26 +10,26 b' remote content, then finally forgotten.'
10 10
11 11 Create base changeset
12 12
13 $ python $TESTDIR/generate-working-copy-states.py state 3 1
13 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 3 1
14 14 $ hg addremove -q --similarity 0
15 15 $ hg commit -qm 'base'
16 16
17 17 Create remote changeset
18 18
19 $ python $TESTDIR/generate-working-copy-states.py state 3 2
19 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 3 2
20 20 $ hg addremove -q --similarity 0
21 21 $ hg commit -qm 'remote'
22 22
23 23 Create local changeset
24 24
25 25 $ hg update -q 0
26 $ python $TESTDIR/generate-working-copy-states.py state 3 3
26 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 3 3
27 27 $ hg addremove -q --similarity 0
28 28 $ hg commit -qm 'local'
29 29
30 30 Set up working directory
31 31
32 $ python $TESTDIR/generate-working-copy-states.py state 3 wc
32 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 3 wc
33 33 $ hg addremove -q --similarity 0
34 34 $ hg forget *_*_*_*-untracked
35 35 $ rm *_*_*_missing-*
@@ -286,7 +286,7 b' missing_missing_content3_missing-tracked'
286 286 the remote side did not touch the file
287 287
288 288 $ checkstatus() {
289 > for f in `python $TESTDIR/generate-working-copy-states.py filelist 3`
289 > for f in `$PYTHON $TESTDIR/generate-working-copy-states.py filelist 3`
290 290 > do
291 291 > echo
292 292 > hg status -A $f
@@ -667,7 +667,7 b' the remote side did not touch the file'
667 667 missing_missing_missing_missing-untracked: * (glob)
668 668 <missing>
669 669
670 $ for f in `python $TESTDIR/generate-working-copy-states.py filelist 3`
670 $ for f in `$PYTHON $TESTDIR/generate-working-copy-states.py filelist 3`
671 671 > do
672 672 > if test -f ${f}.orig
673 673 > then
@@ -784,7 +784,7 b' Set up working directory again'
784 784
785 785 $ hg -q update --clean 2
786 786 $ hg --config extensions.purge= purge
787 $ python $TESTDIR/generate-working-copy-states.py state 3 wc
787 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 3 wc
788 788 $ hg addremove -q --similarity 0
789 789 $ hg forget *_*_*_*-untracked
790 790 $ rm *_*_*_missing-*
@@ -36,7 +36,7 b' a file, once as a link. Bundle was gener'
36 36 Merge them and display *_ISLINK vars
37 37 merge heads
38 38
39 $ hg merge --tool="python ../echo.py"
39 $ hg merge --tool="$PYTHON ../echo.py"
40 40 merging l
41 41 HG_FILE l
42 42 HG_MY_ISLINK 1
@@ -52,7 +52,7 b' merge working directory'
52 52 $ hg up -C 2
53 53 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
54 54 $ hg copy l l2
55 $ HGMERGE="python ../echo.py" hg up 3
55 $ HGMERGE="$PYTHON ../echo.py" hg up 3
56 56 merging l2
57 57 HG_FILE l2
58 58 HG_MY_ISLINK 1
@@ -48,7 +48,7 b' Test different --eol values'
48 48 $ hg ci -Am adda
49 49 adding .hgignore
50 50 adding a
51 $ python ../makepatch.py
51 $ $PYTHON ../makepatch.py
52 52 $ hg qimport eol.diff
53 53 adding eol.diff to series file
54 54
@@ -85,7 +85,7 b' force LF'
85 85 applying eol.diff
86 86 now at: eol.diff
87 87 $ hg qrefresh
88 $ python ../cateol.py .hg/patches/eol.diff
88 $ $PYTHON ../cateol.py .hg/patches/eol.diff
89 89 # HG changeset patch<LF>
90 90 # Parent 0d0bf99a8b7a3842c6f8ef09e34f69156c4bd9d0<LF>
91 91 test message<LF>
@@ -106,7 +106,7 b' force LF'
106 106 +d<CR><LF>
107 107 +z<LF>
108 108 \ No newline at end of file<LF>
109 $ python ../cateol.py a
109 $ $PYTHON ../cateol.py a
110 110 a<CR><LF>
111 111 y<CR><LF>
112 112 c<CR><LF>
@@ -121,7 +121,7 b' push again forcing LF and compare revisi'
121 121 $ hg --config patch.eol='CRLF' qpush
122 122 applying eol.diff
123 123 now at: eol.diff
124 $ python ../cateol.py a
124 $ $PYTHON ../cateol.py a
125 125 a<CR><LF>
126 126 y<CR><LF>
127 127 c<CR><LF>
@@ -136,7 +136,7 b' push again without LF and compare revisi'
136 136 $ hg qpush
137 137 applying eol.diff
138 138 now at: eol.diff
139 $ python ../cateol.py a
139 $ $PYTHON ../cateol.py a
140 140 a<CR><LF>
141 141 y<CR><LF>
142 142 c<CR><LF>
@@ -23,11 +23,11 b' future qrefresh.'
23 23
24 24 $ hg init normal
25 25 $ cd normal
26 $ python ../writelines.py b 10 'a\n'
26 $ $PYTHON ../writelines.py b 10 'a\n'
27 27 $ hg ci -Am addb
28 28 adding b
29 29 $ echo a > a
30 $ python ../writelines.py b 2 'b\n' 10 'a\n' 2 'c\n'
30 $ $PYTHON ../writelines.py b 2 'b\n' 10 'a\n' 2 'c\n'
31 31 $ echo c > c
32 32 $ hg add a c
33 33 $ hg qnew -f changeb
@@ -82,7 +82,7 b' Test missing renamed file'
82 82 $ hg up -qC 0
83 83 $ echo a > a
84 84 $ hg mv b bb
85 $ python ../writelines.py bb 2 'b\n' 10 'a\n' 2 'c\n'
85 $ $PYTHON ../writelines.py bb 2 'b\n' 10 'a\n' 2 'c\n'
86 86 $ echo c > c
87 87 $ hg add a c
88 88 $ hg qnew changebb
@@ -129,11 +129,11 b' Test missing renamed file'
129 129
130 130 $ hg init git
131 131 $ cd git
132 $ python ../writelines.py b 1 '\x00'
132 $ $PYTHON ../writelines.py b 1 '\x00'
133 133 $ hg ci -Am addb
134 134 adding b
135 135 $ echo a > a
136 $ python ../writelines.py b 1 '\x01' 1 '\x00'
136 $ $PYTHON ../writelines.py b 1 '\x01' 1 '\x00'
137 137 $ echo c > c
138 138 $ hg add a c
139 139 $ hg qnew -f changeb
@@ -151,10 +151,10 b' qimport -f'
151 151
152 152 build diff with CRLF
153 153
154 $ python ../writelines.py b 5 'a\n' 5 'a\r\n'
154 $ $PYTHON ../writelines.py b 5 'a\n' 5 'a\r\n'
155 155 $ hg ci -Am addb
156 156 adding b
157 $ python ../writelines.py b 2 'a\n' 10 'b\n' 2 'a\r\n'
157 $ $PYTHON ../writelines.py b 2 'a\n' 10 'b\n' 2 'a\r\n'
158 158 $ hg diff > b.diff
159 159 $ hg up -C
160 160 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -1137,9 +1137,9 b' create a git binary patch'
1137 1137 > path = sys.argv[1]
1138 1138 > open(path, 'wb').write('BIN\x00ARY')
1139 1139 > EOF
1140 $ python writebin.py bucephalus
1140 $ $PYTHON writebin.py bucephalus
1141 1141
1142 $ python "$TESTDIR/md5sum.py" bucephalus
1142 $ $PYTHON "$TESTDIR/md5sum.py" bucephalus
1143 1143 8ba2a2f3e77b55d03051ff9c24ad65e7 bucephalus
1144 1144 $ hg add bucephalus
1145 1145 $ hg qnew -f --git addbucephalus
@@ -1158,7 +1158,7 b' check binary patches can be popped and p'
1158 1158 applying addbucephalus
1159 1159 now at: addbucephalus
1160 1160 $ test -f bucephalus
1161 $ python "$TESTDIR/md5sum.py" bucephalus
1161 $ $PYTHON "$TESTDIR/md5sum.py" bucephalus
1162 1162 8ba2a2f3e77b55d03051ff9c24ad65e7 bucephalus
1163 1163
1164 1164
@@ -14,7 +14,7 b' pager was running.'
14 14 > [extensions]
15 15 > pager=
16 16 > [pager]
17 > pager = python $TESTTMP/fakepager.py
17 > pager = $PYTHON $TESTTMP/fakepager.py
18 18 > EOF
19 19
20 20 $ hg init repo
@@ -22,7 +22,7 b' pager was running.'
22 22 $ echo a >> a
23 23 $ hg add a
24 24 $ hg ci -m 'add a'
25 $ for x in `python $TESTDIR/seq.py 1 10`; do
25 $ for x in `$PYTHON $TESTDIR/seq.py 1 10`; do
26 26 > echo a $x >> a
27 27 > hg ci -m "modify a $x"
28 28 > done
@@ -16,7 +16,7 b' pager was running.'
16 16 > formatted = yes
17 17 > color = no
18 18 > [pager]
19 > pager = python $TESTTMP/fakepager.py
19 > pager = $PYTHON $TESTTMP/fakepager.py
20 20 > EOF
21 21
22 22 $ hg init repo
@@ -24,7 +24,7 b' pager was running.'
24 24 $ echo a >> a
25 25 $ hg add a
26 26 $ hg ci -m 'add a'
27 $ for x in `python $TESTDIR/seq.py 1 10`; do
27 $ for x in `$PYTHON $TESTDIR/seq.py 1 10`; do
28 28 > echo a $x >> a
29 29 > hg ci -m "modify a $x"
30 30 > done
@@ -53,7 +53,7 b' We approximate that by reducing the read'
53 53 > for r in cl:
54 54 > print short(cl.node(r))
55 55 > EOF
56 $ python test.py
56 $ $PYTHON test.py
57 57 2 revisions:
58 58 7c31755bf9b5
59 59 26333235a41c
@@ -167,13 +167,13 b' Test corrupted p1/p2 fields that could c'
167 167 > print inst
168 168 > EOF
169 169
170 $ python test.py limit/.hg/store
170 $ $PYTHON test.py limit/.hg/store
171 171 reachableroots: parent out of range
172 172 compute_phases_map_sets: parent out of range
173 173 index_headrevs: parent out of range
174 174 find_gca_candidates: parent out of range
175 175 find_deepest: parent out of range
176 $ python test.py segv/.hg/store
176 $ $PYTHON test.py segv/.hg/store
177 177 reachableroots: parent out of range
178 178 compute_phases_map_sets: parent out of range
179 179 index_headrevs: parent out of range
@@ -23,7 +23,7 b' the patch. So all the patch hunks need '
23 23 within this file. If the offset isn't tracked then the hunks can be
24 24 applied to the wrong lines of this file.
25 25
26 $ python ../writepatterns.py a 34X 10A 1B 10A 1C 10A 1B 10A 1D 10A 1B 10A 1E 10A 1B 10A
26 $ $PYTHON ../writepatterns.py a 34X 10A 1B 10A 1C 10A 1B 10A 1D 10A 1B 10A 1E 10A 1B 10A
27 27 $ hg commit -Am adda
28 28 adding a
29 29
@@ -76,7 +76,7 b' import patch'
76 76
77 77 compare imported changes against reference file
78 78
79 $ python ../writepatterns.py aref 34X 10A 1B 1a 9A 1C 10A 1B 10A 1D 10A 1B 1a 9A 1E 10A 1B 1a 9A
79 $ $PYTHON ../writepatterns.py aref 34X 10A 1B 1a 9A 1C 10A 1B 10A 1D 10A 1B 1a 9A 1E 10A 1B 1a 9A
80 80 $ diff aref a
81 81
82 82 $ cd ..
@@ -6,7 +6,7 b''
6 6 > EOF
7 7
8 8 $ echo "[ui]" >> $HGRCPATH
9 $ echo "patch=python ../patchtool.py" >> $HGRCPATH
9 $ echo "patch=$PYTHON ../patchtool.py" >> $HGRCPATH
10 10
11 11 $ hg init a
12 12 $ cd a
@@ -5,7 +5,7 b' Set up SMTP server:'
5 5 $ CERTSDIR="$TESTDIR/sslcerts"
6 6 $ cat "$CERTSDIR/priv.pem" "$CERTSDIR/pub.pem" >> server.pem
7 7
8 $ python "$TESTDIR/dummysmtpd.py" -p $HGPORT --pid-file a.pid -d \
8 $ $PYTHON "$TESTDIR/dummysmtpd.py" -p $HGPORT --pid-file a.pid -d \
9 9 > --tls smtps --certificate `pwd`/server.pem
10 10 listening at localhost:$HGPORT (?)
11 11 $ cat a.pid >> $DAEMON_PIDS
@@ -22,7 +22,7 b' Mercurial-patchbomb/.* -> Mercurial-patc'
22 22 > skipblank = False
23 23 > print l,
24 24 > EOF
25 $ FILTERBOUNDARY="python `pwd`/prune-blank-after-boundary.py"
25 $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
26 26 $ echo "[format]" >> $HGRCPATH
27 27 $ echo "usegeneraldelta=yes" >> $HGRCPATH
28 28 $ echo "[extensions]" >> $HGRCPATH
@@ -418,7 +418,7 b" multiple new heads but also doesn't repo"
418 418 adding c
419 419 created new head
420 420
421 $ for i in `python $TESTDIR/seq.py 3`; do hg -R h up -q 0; echo $i > h/b; hg -R h ci -qAm$i; done
421 $ for i in `$PYTHON $TESTDIR/seq.py 3`; do hg -R h up -q 0; echo $i > h/b; hg -R h ci -qAm$i; done
422 422
423 423 $ hg -R i push h
424 424 pushing to h
@@ -93,8 +93,8 b' relink'
93 93
94 94 check hardlinks
95 95
96 $ python arelinked.py repo/.hg/store/data/a.i clone/.hg/store/data/a.i
96 $ $PYTHON arelinked.py repo/.hg/store/data/a.i clone/.hg/store/data/a.i
97 97 repo/.hg/store/data/a.i == clone/.hg/store/data/a.i
98 $ python arelinked.py repo/.hg/store/data/b.i clone/.hg/store/data/b.i
98 $ $PYTHON arelinked.py repo/.hg/store/data/b.i clone/.hg/store/data/b.i
99 99 repo/.hg/store/data/b.i != clone/.hg/store/data/b.i
100 100
@@ -21,7 +21,7 b''
21 21 > hg verify
22 22 > echo % journal contents
23 23 > if [ -f .hg/store/journal ]; then
24 > cat .hg/store/journal | python $TESTTMP/dumpjournal.py
24 > cat .hg/store/journal | $PYTHON $TESTTMP/dumpjournal.py
25 25 > else
26 26 > echo "(no journal)"
27 27 > fi
@@ -495,7 +495,7 b' Write the python script to disk'
495 495
496 496 check list of planned files
497 497
498 $ python $TESTDIR/generate-working-copy-states.py filelist 2
498 $ $PYTHON $TESTDIR/generate-working-copy-states.py filelist 2
499 499 content1_content1_content1-tracked
500 500 content1_content1_content1-untracked
501 501 content1_content1_content3-tracked
@@ -550,7 +550,7 b' Generate appropriate repo state'
550 550
551 551 Generate base changeset
552 552
553 $ python $TESTDIR/generate-working-copy-states.py state 2 1
553 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 1
554 554 $ hg addremove --similarity 0
555 555 adding content1_content1_content1-tracked
556 556 adding content1_content1_content1-untracked
@@ -597,7 +597,7 b' Generate base changeset'
597 597
598 598 (create a simple text version of the content)
599 599
600 $ python ../dircontent.py > ../content-base.txt
600 $ $PYTHON ../dircontent.py > ../content-base.txt
601 601 $ cat ../content-base.txt
602 602 content1 content1_content1_content1-tracked
603 603 content1 content1_content1_content1-untracked
@@ -622,7 +622,7 b' Generate base changeset'
622 622
623 623 Create parent changeset
624 624
625 $ python $TESTDIR/generate-working-copy-states.py state 2 2
625 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 2
626 626 $ hg addremove --similarity 0
627 627 removing content1_missing_content1-tracked
628 628 removing content1_missing_content1-untracked
@@ -661,7 +661,7 b' Create parent changeset'
661 661
662 662 (create a simple text version of the content)
663 663
664 $ python ../dircontent.py > ../content-parent.txt
664 $ $PYTHON ../dircontent.py > ../content-parent.txt
665 665 $ cat ../content-parent.txt
666 666 content1 content1_content1_content1-tracked
667 667 content1 content1_content1_content1-untracked
@@ -686,7 +686,7 b' Create parent changeset'
686 686
687 687 Setup working directory
688 688
689 $ python $TESTDIR/generate-working-copy-states.py state 2 wc
689 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 wc
690 690 $ hg addremove --similarity 0
691 691 adding content1_missing_content1-tracked
692 692 adding content1_missing_content1-untracked
@@ -754,7 +754,7 b' Setup working directory'
754 754
755 755 (create a simple text version of the content)
756 756
757 $ python ../dircontent.py > ../content-wc.txt
757 $ $PYTHON ../dircontent.py > ../content-wc.txt
758 758 $ cat ../content-wc.txt
759 759 content1 content1_content1_content1-tracked
760 760 content1 content1_content1_content1-untracked
@@ -818,7 +818,7 b' Compare resulting directory with revert '
818 818 The diff is filtered to include change only. The only difference should be
819 819 additional `.orig` backup file when applicable.
820 820
821 $ python ../dircontent.py > ../content-parent-all.txt
821 $ $PYTHON ../dircontent.py > ../content-parent-all.txt
822 822 $ cd ..
823 823 $ diff -U 0 -- content-parent.txt content-parent-all.txt | grep _
824 824 +content3 content1_content1_content3-tracked.orig
@@ -875,7 +875,7 b' Compare resulting directory with revert '
875 875 The diff is filtered to include change only. The only difference should be
876 876 additional `.orig` backup file when applicable.
877 877
878 $ python ../dircontent.py > ../content-base-all.txt
878 $ $PYTHON ../dircontent.py > ../content-base-all.txt
879 879 $ cd ..
880 880 $ diff -U 0 -- content-base.txt content-base-all.txt | grep _
881 881 +content3 content1_content1_content3-tracked.orig
@@ -902,7 +902,7 b' Test revert to parent content with expli'
902 902 revert all files individually and check the output
903 903 (output is expected to be different than in the --all case)
904 904
905 $ for file in `python $TESTDIR/generate-working-copy-states.py filelist 2`; do
905 $ for file in `$PYTHON $TESTDIR/generate-working-copy-states.py filelist 2`; do
906 906 > echo '### revert for:' $file;
907 907 > hg revert $file;
908 908 > echo
@@ -979,7 +979,7 b' revert all files individually and check '
979 979 check resulting directory against the --all run
980 980 (There should be no difference)
981 981
982 $ python ../dircontent.py > ../content-parent-explicit.txt
982 $ $PYTHON ../dircontent.py > ../content-parent-explicit.txt
983 983 $ cd ..
984 984 $ diff -U 0 -- content-parent-all.txt content-parent-explicit.txt | grep _
985 985 [1]
@@ -995,7 +995,7 b' Test revert to "base" content with expli'
995 995 revert all files individually and check the output
996 996 (output is expected to be different than in the --all case)
997 997
998 $ for file in `python $TESTDIR/generate-working-copy-states.py filelist 2`; do
998 $ for file in `$PYTHON $TESTDIR/generate-working-copy-states.py filelist 2`; do
999 999 > echo '### revert for:' $file;
1000 1000 > hg revert $file --rev 'desc(base)';
1001 1001 > echo
@@ -1072,7 +1072,7 b' revert all files individually and check '
1072 1072 check resulting directory against the --all run
1073 1073 (There should be no difference)
1074 1074
1075 $ python ../dircontent.py > ../content-base-explicit.txt
1075 $ $PYTHON ../dircontent.py > ../content-base-explicit.txt
1076 1076 $ cd ..
1077 1077 $ diff -U 0 -- content-base-all.txt content-base-explicit.txt | grep _
1078 1078 [1]
@@ -363,9 +363,9 b' Issue 4438 - test coverage for 3ef893520'
363 363 #if false
364 364 generate new bundles:
365 365 $ hg init r1
366 $ for i in `python $TESTDIR/seq.py 101`; do hg -R r1 up -qr null && hg -R r1 branch -q b$i && hg -R r1 ci -qmb$i; done
366 $ for i in `$PYTHON $TESTDIR/seq.py 101`; do hg -R r1 up -qr null && hg -R r1 branch -q b$i && hg -R r1 ci -qmb$i; done
367 367 $ hg clone -q r1 r2
368 $ for i in `python $TESTDIR/seq.py 10`; do hg -R r1 up -qr null && hg -R r1 branch -q c$i && hg -R r1 ci -qmc$i; done
368 $ for i in `$PYTHON $TESTDIR/seq.py 10`; do hg -R r1 up -qr null && hg -R r1 branch -q c$i && hg -R r1 ci -qmc$i; done
369 369 $ hg -R r2 branch -q r2change && hg -R r2 ci -qmr2change
370 370 $ hg -R r1 bundle -qa $TESTDIR/bundles/issue4438-r1.hg
371 371 $ hg -R r2 bundle -qa $TESTDIR/bundles/issue4438-r2.hg
@@ -77,7 +77,7 b' update with worker processes'
77 77 > [worker]
78 78 > numcpus = 4
79 79 > EOF
80 $ for i in `python $TESTDIR/seq.py 1 100`; do
80 $ for i in `$PYTHON $TESTDIR/seq.py 1 100`; do
81 81 > echo $i > $i
82 82 > done
83 83 $ hg ci -qAm 'add 100 files'
@@ -9,7 +9,7 b''
9 9 This server doesn't do range requests so it's basically only good for
10 10 one pull
11 11
12 $ python "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
12 $ $PYTHON "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
13 13 $ cat dumb.pid >> $DAEMON_PIDS
14 14 $ hg init remote
15 15 $ cd remote
@@ -5,7 +5,7 b' combined correctly with the dirstate sta'
5 5
6 6 First commit
7 7
8 $ python $TESTDIR/generate-working-copy-states.py state 2 1
8 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 1
9 9 $ hg addremove --similarity 0
10 10 adding content1_content1_content1-tracked
11 11 adding content1_content1_content1-untracked
@@ -31,7 +31,7 b' First commit'
31 31
32 32 Second commit
33 33
34 $ python $TESTDIR/generate-working-copy-states.py state 2 2
34 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 2
35 35 $ hg addremove --similarity 0
36 36 removing content1_missing_content1-tracked
37 37 removing content1_missing_content1-untracked
@@ -49,7 +49,7 b' Second commit'
49 49
50 50 Working copy
51 51
52 $ python $TESTDIR/generate-working-copy-states.py state 2 wc
52 $ $PYTHON $TESTDIR/generate-working-copy-states.py state 2 wc
53 53 $ hg addremove --similarity 0
54 54 adding content1_missing_content1-tracked
55 55 adding content1_missing_content1-untracked
@@ -44,10 +44,10 b' Tests of the file helper tool'
44 44 #endif
45 45
46 46 #if no-windows
47 $ python $TESTDIR/seq.py 10 > bar
47 $ $PYTHON $TESTDIR/seq.py 10 > bar
48 48 #else
49 49 Convert CRLF -> LF for consistency
50 $ python $TESTDIR/seq.py 10 | sed "s/$//" > bar
50 $ $PYTHON $TESTDIR/seq.py 10 | sed "s/$//" > bar
51 51 #endif
52 52
53 53 #if unix-permissions symlink
@@ -28,7 +28,7 b' commit should succeed'
28 28 updating to branch default
29 29 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
30 30 $ cp .hg/hgrc ../zoz/.hg
31 $ python unix2dos.py f
31 $ $PYTHON unix2dos.py f
32 32
33 33 commit should fail
34 34
@@ -102,7 +102,7 b' and now for something completely differe'
102 102
103 103 $ mkdir d
104 104 $ echo hello > d/f2
105 $ python unix2dos.py d/f2
105 $ $PYTHON unix2dos.py d/f2
106 106 $ hg add d/f2
107 107 $ hg ci -m 3
108 108 attempt to commit or push text file(s) using CRLF line endings
@@ -181,7 +181,7 b' and now for something completely differe'
181 181 adding dupe/b (glob)
182 182 adding dupe/c (glob)
183 183 adding dupe/d (glob)
184 $ python unix2dos.py dupe/b dupe/c dupe/d
184 $ $PYTHON unix2dos.py dupe/b dupe/c dupe/d
185 185 $ hg -R dupe ci -m a dupe/a
186 186 $ hg -R dupe ci -m b/c dupe/[bc]
187 187 $ hg -R dupe ci -m d dupe/d
General Comments 0
You need to be logged in to leave comments. Login now