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